- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2022 09:22 PM
I am new to ServiceNow development.
Please tell me the following
◆Question
What is the order in which Servicenow catalog item variables are displayed?
If the Order has the same number, what is the display order on the screen?
Please let me know the logic to control the display order.
I would like to know the logic of the display order of item 1 and item 3 in the following example.
Is it controlled by Sys_ID?
【Example】
Valiables Tab
------------------------------------------------
Name Order
------------------------------------------------
Item 1 100
Item 2 200
Item 3 100
Item 4 300
I understand that it is better to explicitly control by the value of Order.
However, I am wondering about the order in which Orders are called, including the order in which they are executed when controlling Catalog UI Policies.
I am not very good at English, so please forgive me if there are any ambiguities in the wording of the question. I am using a translation site to translate my questions, so my understanding is conveyed to a certain extent...
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2022 09:39 PM
Hi Tomy,
◆Question
What is the order in which Servicenow catalog item variables are displayed?
-- Order field on the variable form dertermines the order of display.
If the Order has the same number, what is the display order on the screen?
-- One created last with same order value will take precedence. So, if Item 3 variable is created with 100 order & there exists Item 1 variable with order 100 then Item 3 variable will take precedence.
Please let me know the logic to control the display order.
-- Unfortunately, No. Except for Order.
I would like to know the logic of the display order of item 1 and item 3 in the following example.
Is it controlled by Sys_ID?
-- No, its completely based on order value.
However, I am wondering about the order in which Orders are called, including the order in which they are executed when controlling Catalog UI Policies.
-- While execution of Catalog UI Policies or Catalog Client Scripts it will check for variable names & not order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2022 09:28 PM
The variable with the least order will be displayed first. So there is no particular logic to determine the order of the variables having the same order it is random, which ever comes first when the query is made. So it is better not to have same order for 2 variables and control using the different order values

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-20-2022 09:39 PM
Hi Tomy,
◆Question
What is the order in which Servicenow catalog item variables are displayed?
-- Order field on the variable form dertermines the order of display.
If the Order has the same number, what is the display order on the screen?
-- One created last with same order value will take precedence. So, if Item 3 variable is created with 100 order & there exists Item 1 variable with order 100 then Item 3 variable will take precedence.
Please let me know the logic to control the display order.
-- Unfortunately, No. Except for Order.
I would like to know the logic of the display order of item 1 and item 3 in the following example.
Is it controlled by Sys_ID?
-- No, its completely based on order value.
However, I am wondering about the order in which Orders are called, including the order in which they are executed when controlling Catalog UI Policies.
-- While execution of Catalog UI Policies or Catalog Client Scripts it will check for variable names & not order.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2022 01:14 AM
Mr. Singh.
Thank you for your response.
Please tell me one additional point about your answer.
-- One created last with same order value will take precedence. So, if Item 3 variable is created with 100 order & there exists Item 1 variable with order 100 then Item 3 variable will take precedence.
For a catalog item, I set up three variables with the same Order value. (Figure 1 in the attached file)
The order in which the variables are set is st_v1, st_v2, and st_v3.
Based on the content of the responses, we recognized that they would be displayed in the service portal in the following order.
▼Display order (my assumption)
st_v3
st_v2
st_v1
However, the actual display order of the service portal was as shown in Figure 2. (see attachment)
▼ Actual display order
st_v3
st_v1
st_v2
Why is that?
I am sorry if I misunderstood your answer.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2022 01:29 AM
Mr. Singh.
Thank you for your response.
Please tell me one additional point about your answer.
-- One created last with same order value will take precedence. So, if Item 3 variable is created with 100 order & there exists Item 1 variable with order 100 then Item 3 variable will take precedence.
For a catalog item, I set up three variables with the same Order value. (Figure 1 in the attached file)
The order in which the variables are set is st_v1, st_v2, and st_v3.
Based on the content of the responses, we recognized that they would be displayed in the service portal in the following order.
▼Display order (my assumption)
st_v3
st_v2
st_v1
However, the actual display order of the service portal was as shown in Figure 2. (see attachment)
▼ Actual display order
st_v3
st_v1
st_v2
Why is that?
I am sorry if I misunderstood your answer.