Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to save the form and call UI page using UI action?

Sagar24
Tera Contributor

I have scenario where I have to save the form and call the Ui page on click of a UI button. I tried using g_form.save() and g_form.submit() but nothing worked. I have tried calling another function from on click function but not sure about the right syntax

find_real_file.png

6 REPLIES 6

Sajilal
Mega Sage

Please check this Community Link for assistance. LINK. Still you face any difficulties let us know


Please mark helpful/correct if it helped resolve your query.

Thanks,
Saji

Sagar24
Tera Contributor

Hi Saji,

Thanks for your response. I have tried adding g_form.save() in client script of UI page but it is not saving the form anymore. Could you please help me?

 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

if you use g_form.save() the form would reload

Is it showing the UI page then?

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Sagar24
Tera Contributor

Ankur,

It is reloading and at the same time showing ui page dialog but after few seconds it is cancelling. I want this as simple. On click of a button it should save the form and then render the ui page