- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2022 10:30 PM
I have an onChange Client script which sets the location based on CI selection. If the CI doesn't have any location then it should be setting location to "Not Available" (This is a test location we created and wanted to set to location whenever ci doesn't have any location). However, while saving the form it throwing an error as "Invalid Update", "Match not found, reset to original" as shown in the picture below
Client Script:
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2022 10:53 PM
Hello,
'Location' is a reference field and in code you are passing it is hard coded string value hence showing error, Please create new location in location table as 'Not available' then pass sys_id of new entry from location table to your code then it will work properly.
Mark my answer as correct if that helps.
Regards
Regards,
Musab

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-05-2022 10:53 PM
Hello,
'Location' is a reference field and in code you are passing it is hard coded string value hence showing error, Please create new location in location table as 'Not available' then pass sys_id of new entry from location table to your code then it will work properly.
Mark my answer as correct if that helps.
Regards
Regards,
Musab