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.

Need to autosave the form through the script include

SK41
Giga Guru

Hi,

 

I have a requirement where I need to autosave the form through the script include/server side. How can I do that?

 

8 REPLIES 8

Just need to do for one field. If the value in that field changes then it should autosave..I have to do this through server script. Could you suggest how can I do it in script?

@SK41 If this is about just one field then you can use a combination of an onChange script +GlideAjax and Script include to save the value of this field on the server side.

Can you suggest the method or function that auto save in server side script? 

@SK41 There is no OOTB auto save function available. You would need to use GlideRecord and update() method to update the field on record being shown on the form.