- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2020 07:40 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2020 07:45 AM
Hi,
your catalog client scripts and catalog UI policy should not run on RITM form
Applies to Requested Item - Should be false
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2020 07:45 AM
Hi,
your catalog client scripts and catalog UI policy should not run on RITM form
Applies to Requested Item - Should be false
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2021 08:11 AM
Hi
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2021 08:15 AM
Please debug by checking the UI policies 1 by 1
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-28-2021 08:11 AM
Hi
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.