Variables under Modal in Catalog form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 12:01 AM
We've Catalog form - We want to create a link on click of link it should open a modal and it should have 10-12 variables as mandatory and users should fill it before actual form submission
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 12:09 AM
Why not have those variables in main form only?
why to have those in modal?
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 03:17 AM
Hi Ankur
Thank you for your response
Since our catalog form contains numerous fields and is quite lengthy, we’ve observed that users are often missing or overlooking some of the pre-filled values while submitting the Record Producer (RP) form
To address this, We would like to implement a modal popup that will trigger before the final submission. This modal would display a set of key variables (10-12 fields) which users must review and confirm to ensure the data is accurate.
The goal is to introduce a re-verification step where users consciously validate these critical fields before submitting the form, reducing the chances of missed or incorrect inputs.
Could you help us with the best approach to implement this?
We’re open to suggestions if there’s a better or standard way to handle this in ServiceNow.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 03:29 AM
if you just want them to review and not asking them to fill, then you can use variable of type Custom
Then create a widget and add this widget to this Custom variable.
In that widget you can form HTML and show variable value
Syntax to access variable value in widget client controller is this
function($scope) {
var c = this;
var variableValue = $scope.page.g_form.getValue('variable_name');
// Use variableValue as needed
}
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-15-2025 12:29 AM
If you need to add new widget to Catalog form, you can create a variable which type is custom.