Example that can be used to capture MRVS values, including when a record is deleted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
⚙️ 2️⃣ Detecting MRVS changes to update the main form
Now imagine you want to automatically update a “Total” field every time a row is added, removed, or modified in your MRVS.
How can you achieve this, considering the MRVS has its own event scope?
The solution: use a listener to detect any changes in the main form.
Create a Catalog Client Script of type onLoad and add the following event:
/*
Example that can be used to capture MRVS values, including when a record is deleted — a scenario for which there is currently no native event for row deletion.
Example code
check link : https://pastebin.com/4fYa8Wtj
💡 With this approach, any modification in the MRVS automatically updates the “Total” field in the main catalog form.
⚠️Important: Although this solution works well in many scenarios, it is essential to validate it with the platform architect or follow the best practices established by the development.
#ITSM#SERVICENOW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
I am referring whether this logic will work if user tries to submit catalog item in service catalog view and not after the submission.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
an hour ago
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago

