How to get reference field values in another field.

shravani6
Tera Contributor

On the catalog request form, I have 3 reference fields and those fields' values should display in the 4th field with (,) comma-separated and 4th filed is a single-line text.

find_real_file.png

 

also tried this catalog client script it is displaying sys_id in the 4th field.

find_real_file.png

1 ACCEPTED SOLUTION

RaghavSh
Kilo Patron

Try:

g_form.getDisplayBox('variable_name').value instead of g_form.getValue


Raghav
MVP 2023

View solution in original post

6 REPLIES 6

@shravani 

the approach I shared should work in both native and Portal.

If my response helped you please mark appropriate response as correct and helpful

Regards
Ankur

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

Jaspal Singh
Mega Patron
Mega Patron

Hi Shravani,

 

Seems you mark all answers correct. Note you can have only one answer correct for each thread so you can mark the one that you felt satisfying.