Variable Set values display but quickly disappear from RITM form

joymorales
Giga Guru

Hi Team.

I created a variable set with four variables (requested for, company, phone, needed by), and created two client scripts.  One onLoad script to auto-populate the fields in the catalog order form with information for the user signed into SN.  The other onChange is to update the information on the fields when the name on the requester field is changed to someone else's.  Also, created an UI policy to set variable fields in the Requested Items form to not be mandatory.  These work well.

However, after I click "Order Now", click the REQ number to access the REQ form, then click the RITM number to open the form, the information on the Variable Set from the Catalog order form populates the fields, but instantaneously disappears and resets to the original "requested for" information.

I have tried the variable set on different catalog items, and tried the same in my Personal (Paris) and DEV (New York) instances, and same issue.

I checked the Business Rules, UI Policies, UI Actions and Client scripts and did not find one that could be resetting the fields on the RITM form.  Attached are screenshots of the variable set, UI policy and client scripts for the variable set.

I have searched the web and looked/tried different suggestions, but no success in keeping the variable values in the RITM form.

Any suggestions/recommendations will be greatly appreciated.

Thank you.

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

your catalog client scripts and catalog UI policy should not run on RITM form

Applies to Requested Item - Should be false

Regards
Ankur

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

View solution in original post

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

your catalog client scripts and catalog UI policy should not run on RITM form

Applies to Requested Item - Should be false

Regards
Ankur

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

Hi @Ankur Bawiskar I have similar issue where one particular variable within a variable set disappears when form loads, I have 4 UI polciies.

I followed your answer here and unchecked applies on requested item, but now all the variables show on the item?

and also the variable still not showing in the catalog task.
Please advise.

Please debug by checking the UI policies 1 by 1

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

Hi @Ankur Bawiskar I have similar issue where one particular variable within a variable set disappears when form loads, I have 4 UI polciies.

I followed your answer here and unchecked applies on requested item, but now all the variables show on the item?

and also the variable still not showing in the catalog task.
Please advise.