Get all label fields from lookup select box to string

MARISA INACIO1
Tera Contributor

Hi everyone,

 

I have a catalog item and when I choose an option, it populates another field.
The choice field is a lookup select box with 3 label fields

 

MARISAINACIO1_1-1668526448115.png

 

 

And I have this script to populate the other field. The problem is that in the cmdb_ci field only the first label field appears, and I need all 3 to appear.

 

MARISAINACIO1_0-1668526281774.png

 

 

MARISAINACIO1_2-1668527303543.png

Thanks in advance

 

2 REPLIES 2

Saurav11
Kilo Patron
Kilo Patron

Hello,

 

What type of field is cmdb_ci? Is it reference field if yes then in a reference field only the display value will appear.

 

Thanks.

cmdb_ci its a lookup select box too. But in script i put an alert in newValue before the setValue line, and the newValue only have the first field (123456, in this case), so i think the problem is on change the newValue don't get all the 3 values to set right in cmbd_ci