how to save the form using ui action in client script?

Rajkumar10
Tera Contributor

how to save the form using ui action in client script,i have one button when i click that button how the form is save?

1 ACCEPTED SOLUTION

Alikutty A
Tera Sage

Hi,

Try

g_form.save();

Thanks

View solution in original post

9 REPLIES 9

Alberto Consonn
ServiceNow Employee
ServiceNow Employee

Please try with the following code:

gsftSubmit(gel('sysverb_update_and_stay'));

If I have answered your question, please mark my response as correct so that others with the same question in the future can find it quickly and that it gets removed from the Unanswered list.

Thank you

Cheers
Alberto

Thank you, that line worked well in a UI Policy that performs an auto-save. I get some errors, but the new record is save automatically, just as I intended. Well done.

Kind Regards,

Woody

Alikutty A
Tera Sage

Hi,

Try

g_form.save();

Thanks

it was not working