Do you want to Save changes popup Save button click handler Service Portal

JG16
Tera Contributor

Hi,

 

in UI page page if user add some field information/text and clicks on any other hyperlinks system is showing popup message saying that "Do you want to save changes before leaving this page" with two buttons Discard and Save buttons.

I am facing issue here. If user did not fill any mandatory fields and click save button on the popup it is not highlighting/validating the mandatory fields. How to handle this. 

where can i find the that popup save button click handler. 

 

Thanks In Advance

JG

3 REPLIES 3

Swathi12
Tera Expert

Hi JG,

For the pop up message validations , in ui page you have to write a client script function in which you can add the validations and call the function in onclick of the save button.

 

Please refer "checklist_save_as_template" OOB ui page.

 

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.

 

Regards,

Swathi

JG16
Tera Contributor

Dear Swathi,

Thanks for your reply. It is dynamic page so where i have to write client scripts for that. I have tried by writing client scripts for the below pages

UI page name  : _form 

it did not work for me. we are supplying table name and view name to the above page and page is loading the fields for the table. 

so how to write that.

Thanks in Advance

JG

 

 

JG16
Tera Contributor

Any one can help please