- 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 08:46 AM
Thanks Ankur. It worked. Greatly appreciate your help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-02-2020 08:50 AM
You are welcome
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader