Change Order of Variables - Catalog Item - Service Portal

igeekforyou
Kilo Expert

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

Original.png    

DESIRED

Desired.png

1 ACCEPTED SOLUTION

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.


View solution in original post

5 REPLIES 5

NYoks1
Giga Expert

You can create two separate variable set instead.