How to check if a form is save
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2020 01:05 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2020 01:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2020 01:19 AM
Hi!
the problem is that i have to check this on a state after submit, in work in progress
thanks
ignacio

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2020 01:26 AM
Hi Ignacio,
You can use "current.isValidRecord()".
Please refer - Testing for a Valid Record
Thanks,
Ajay
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2020 01:27 AM
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.