Question

Hello Iam coding a Sharepoint Solution with a Application page. In this Page i created a ModalDialog to open when a Button is clicked. The Problem is I want to run java script when the Dialog is closed. I think dialogReturnValueCallBack is the rigth way but it just doesnt work. This is my Script:

 <script type="text/javascript">
     function showPopUp() {
         var options = {
             url: 'http://lbsps-2013/Anfragen/Lists/Klinik/NewForm.aspx',
             title: 'Neue Klink',
             allowMaximize: false,
             showClose: true,
             dialogReturnValueCallBack: callbacker
         }
         SP.UI.ModalDialog.showModalDialog(options);

     }

     function callbacker(dialogResult, returnValue) {
        alert("HI");
     }

</script>
Was it helpful?

Solution

Parameter names in JavaScript are case-sensitive. According to MSDN, it's dialogReturnValueCallback.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top