
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2015 11:26 PM
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.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-17-2015 11:45 PM
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();};

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 12:19 AM
This is the syntax to destroy the page
GlideDialogWindow.get().destroy();
Pradeep has mentioned that earlier in the thread.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 12:24 AM
I have modified the way as the above line. Still its not disappearing
Thanks and Regards,
Sunil Safare.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 12:42 AM
can you replicate this in any instance?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 01:18 AM
Hi Kalai,
I have created a UI page in demo007.service-now.com and testing it by clicking on Try it.
It is reproducible.
UI page: my_ui_page
Looking forward for your help
Thanks and Regards,
Sunil Safare

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-18-2015 01:50 AM
Where are you calling it ? In which UI action?