Change display value of variable in a catalog item.

Yugi
Tera Expert

Hi expert,

I have a requirement where to change the display value of variable in a catalog item, I only know that if I change the default value of corresponding column name in table to true, the display value will be updated.

Ex: Update display value of user's email to true, the field User will show as email of user, instead of username by default.

 

find_real_file.png

find_real_file.png

However, it will affect others catalog item as well, as I want the display value changed for a specific catalog item only. I am not sure if there is a way to implement it by scripting ? If so, which script should I use ?

1 ACCEPTED SOLUTION

Deepak Ingale1
Mega Sage

You have an option to configure the variable as "lookup select". This lookup select variable allows you to chose different display value for REFERENCE table.

 

https://docs.servicenow.com/product/service_catalog_management/reference/r_LookupSelectBoxVariablePr...

View solution in original post

4 REPLIES 4

Jace Benson
Mega Sage

Looks like you're looking at two different things.

In your first screenshot you have a catalog item with variables.  You can change the Question text by right-clicking the variable label and customizing it from that screen.  Updating the Question will not break the submission.

That appears to be what you want to do.

The second screenshot is to change a column for a table.  That is where the data will end up if you're using a record producer.

Gowtham29
Tera Expert

Hi 

Since you make display true in table it will applicable to all the catalog items where ever this variable is used. Uncheck the value from the table and do changes in the variable record of that particular catalog item.

Deepak Ingale1
Mega Sage

You have an option to configure the variable as "lookup select". This lookup select variable allows you to chose different display value for REFERENCE table.

 

https://docs.servicenow.com/product/service_catalog_management/reference/r_LookupSelectBoxVariablePr...

Thank you so much ! That what I need.