Variables under modal in RP form

Ankit819
Kilo Contributor

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.

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Ankit819 

Seems same question asked by some other person

https://www.servicenow.com/community/developer-forum/variables-under-modal-in-catalog-form/m-p/33212... 

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

Hi Ankur,

Thank you for your response.

As per your suggestion, we understand that the current approach allows us to display the variables. However, the requirement is not just to show the variables, but also to allow the user to edit and fill in those variables directly in the modal itself.

Could you please advise on how we can achieve this functionality?