URGENT!!! Save the form when the pop up closed by the user

sunilsafare
Mega Guru

Hi Experts,

I have a requirement where I am calling a UI page to perform some action on the form. First the user opens the form, modify the data and click on the ui action, there I am calling a ui page which displays a pop up to perform some action. If user close the pop up without performing the action by clicking the (X) button(the X button will be there for pop up window), then the data on the form should be saved automatically without clicking on the ui action again. I am stuck how to find the control that user has clicked on X button to perform save operation.

Thanks in advance!

Regards,

Sunil Safare.

1 ACCEPTED SOLUTION

Kalaiarasan Pus
Giga Sage

I had this in one of the UI pages that I had designed. This will call some function when the close icon of the popup window is clicked. Add it on your UI page.



document.getElementById('popup_close_image').onclick = function() {submitForm();};


View solution in original post

12 REPLIES 12

I am trying to call it from client script "Test POP up", but not working since I need to pass parameters. Instead I am using "Try it" button on UI page. There if I click on Close button window is not disappearing



Thanks and Regards,


Sunil Safare.


During 'try it' it will not disappear.. Try to use GlideDialogWindow and let me know the results


I was trying to close the DialogWindow instead of DialogForm. Now it worked fine



Thanks a lot Kalai



Regards,


Sunil Safare