Variables under Modal in Catalog form

NazeerM
Tera Contributor

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

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@NazeerM 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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.

@NazeerM 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Di Zhang
Tera Guru

If you need to add new widget to  Catalog form, you can create a variable which type is custom.