- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-06-2025 01:13 PM
Hi,
I have a scenario where user opens an RITM to view details, then, when navigating away they receive (one of) the following pop-up warning even though the user has not changed anything:
I have been able to replicate the issue (only appears to happen on specific cat item/scenario), however, i am unable to identify what is being changed to trigger the pop-up.
- Audit history shows no changes to field
- Comparing record XML before and after save show only fields updated: <sys_mod_count>, <sys_updated_by>, <sys_updated_on>
- Comparing item variables shows no difference.
- Looking at client on-load scripts has not uncovered anything at this time.
Is there any debug method that shows what changed?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 01:09 PM - edited 02-07-2025 07:04 PM
@Mark Manders - I feel i have gone through all the client scripts/ui policies (100x) that do something onLoad and not found anything... but keep going back as i must of missed something! ...right?
@Fumiya_F - I created a UI action based on the script you provided. No changes found on any of the table fields.
What about the form variables? 🤔
Using the following code (sourced: SN Guru - Checking for Modified or Changed Fields in Script ) I was able to confirm that a form variable was reported as changed:
alert('Variables Changed: ' + $$('.changed').length);
Variables Changed: 1
How do I identify which variable was changed? 🤔
I ran the following code in a UI action, which returned a list of all the variables for the item:
function changedFields() {
alert('Variables Changed: ' + $$('.changed').length);
var formVars = [];
var formVarName = '';
for (var index = 0; index < g_form.nameMap.length; index++) {
formVarName = "Name Map # " + index + ": " + g_form.nameMap[index].prettyName;
formVars.push(formVarName);
}
console.log(formVars.join(' | '));
}
I couldn't find a way to use the variables list to search for changed.
🎉How I finally found the variable.... 🎉
Loaded the RITM page withe developer tools running, then, using the elements tab I searched for changed.
Going through each occurrence (only 18 found) and reviewing what else was wrapped around it, the variable was identified:
example of the html code identifying changed:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 01:53 AM
Check on any client scripts/ui policies that do something onLoad (it could even be something like setting the assignment group (which doesn't actually change in value, but if your client script runs and sets it (again), it will be seen as an update and needs to be saved. Most of the time this is due to not using best practice while scripting.
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 02:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-07-2025 01:09 PM - edited 02-07-2025 07:04 PM
@Mark Manders - I feel i have gone through all the client scripts/ui policies (100x) that do something onLoad and not found anything... but keep going back as i must of missed something! ...right?
@Fumiya_F - I created a UI action based on the script you provided. No changes found on any of the table fields.
What about the form variables? 🤔
Using the following code (sourced: SN Guru - Checking for Modified or Changed Fields in Script ) I was able to confirm that a form variable was reported as changed:
alert('Variables Changed: ' + $$('.changed').length);
Variables Changed: 1
How do I identify which variable was changed? 🤔
I ran the following code in a UI action, which returned a list of all the variables for the item:
function changedFields() {
alert('Variables Changed: ' + $$('.changed').length);
var formVars = [];
var formVarName = '';
for (var index = 0; index < g_form.nameMap.length; index++) {
formVarName = "Name Map # " + index + ": " + g_form.nameMap[index].prettyName;
formVars.push(formVarName);
}
console.log(formVars.join(' | '));
}
I couldn't find a way to use the variables list to search for changed.
🎉How I finally found the variable.... 🎉
Loaded the RITM page withe developer tools running, then, using the elements tab I searched for changed.
Going through each occurrence (only 18 found) and reviewing what else was wrapped around it, the variable was identified:
example of the html code identifying changed: