- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 08:57 PM
I have an onSubmit Client Script that I need to perform several validation checks on if the variables changed.
How can I script:
If State changes to In Progress
I'm unable to use an onChange Client Script for this scenerio.
Help is greatly appreciated!!
Thank you,
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 09:07 PM
Hi,
Write the onChange client script on State field and add below code.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 06:14 AM
I tried the OnChange Client Script and it allows the pop up window to come up. But when I click "Yes" to confirm it takes me to a New Record and does not save the form changes on the record I was on.
I'm using GlideModel with this function.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 04:42 AM
Hi @Su522 in onsubmit client script you cannot check previous state value, the alternate is to use before update Business rule.
cond: state chagesTo WIP
script:
you can access variable values using
current.variables.variablename and then you can do your validation.
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 05:02 AM
I dont think a Before Update BR will work in this use case- I need to use GlideModel for a pop up window...
A UI Action that is needed triggers my OnSubmit Client Script. Once it triggers my CS pop ups a window asking if you want to continiue. But before it does- my validation checks in the CS run.
Can you help?
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2024 04:50 AM
Hi @Su522 ,
What happened when the UI Action operation is performed ?