How to check if a form is save

ignacio bertin
Kilo Contributor

Hello, 

i have to check, inside a ui action, if a request has been saved. 

i have tried the function g_form.modified but is not working 

thanks 

Ignacio 

5 REPLIES 5

Ajaykumar1
Tera Guru

Hi,

You can add current.isNewRecord() in the UI action's condition field. This will make the UI action visible only if the record is a new record i.e. record is not yet saved.

Regards,
Ajay

Hi!

the problem is that i have to check this on a state after submit, in work in progress

thanks 

ignacio 

Hi Ignacio,

You can use "current.isValidRecord()".

Please refer - Testing for a Valid Record

Thanks,
Ajay

Namrata Khabale
Giga Guru

Hey ignacio,

 

Refer the Link, it might help you:

 

https://www.servicenowguru.com/scripting/business-rules-scripting/checking-modified-fields-script/

 

Mark Correct and Helpful if it helps!!!

 

Best Regards,

Namrata.