Location field dont want to display hierarchical Value

may13
Tera Contributor

How to resolve this issue in servicenow -

 

There is one catalog item "Sotware request" in that there is one field  "Office Location" pulled from the CMS Location table are deeply nested and often long

Currently, the dropdown does not handle these well — the values are cut off without line breaks, making them unreadable and unusable.

(e.g., "Global/Germany/Berlin/123456/Street").

 

mayur4_1-1745490147940.png

 

is anyone know how to resolve this issue?

3 REPLIES 3

J Siva
Tera Sage

Hi @may13 
That's the expected behavior. I can see that you're using a 2-column layout, which is why you are not able to view the full name. As a workaround, place that field in a single-column layout. This will show you the full name. OR you can change the display field on the cmn_location table as "name" field. So that in the drop down you'll see the name of the location record instead of full name.

JSiva_0-1745492879059.png

Regards,
Siva

Ankur Bawiskar
Tera Patron
Tera Patron

@may13 

2 ways

1) you can use 1 column layout so that the variable takes entire row and then user can see the complete conten

OR

2) you can use another string variable of length 200/250 and then write onChange client script to query that record and get the complete name and put in the new string variable

OR

3) try to use Lookup select box and see if it shows the complete text (I doubt this might work)

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

@may13 

Thank you for marking my response as helpful.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader