- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2018 12:58 PM
Here's a fun one.
Scenario: I have a Catalog Item made up of a few variable sets and some single variables. One variable set is a common one that contains the Requestor, Short Description, Description, Location, and some others.
Challenge: How to get just the two fields (Short Description and Description), which are a part of a commonly used update set, to be displayed below the single variables.
Assumption: I assume that a client script could be derived to change the order of those two fields onLoad, but the challenge is how to achieve that to work with the portal. Any help on the script and making it work on the Service Portal would be greatly appreciated. The reason that i'm not simply re-creating those two fields is because there are many areas in the tool that Short description and description are important to use OOB.
ORIGINAL
DESIRED
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2018 02:03 PM
Would be a pain in the *** to mix those I think with a client script. That part is using ServiceNow custom elements like <sp-cat-item> and <sp-variable-layout> etc.
Without going to deep and looked. I would say best option would be to customize the Server script on the widget and perhaps be able to manipulate the order field from there.. but it's a lot of work for 2 variables in one item. I would rather just create them manually instead.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-05-2024 09:58 PM
You can create two separate variable set instead.