Need user name instead of sys id for a user from sys user table

Renu9
Tera Contributor

Hi,

As per a requirement need to display the requested for field of a Request , but as of now sys id of the requested for field is displaying and not name.

My script is on UI action, where g_form.getValue(requested_for) is not working and also getDisplayValue is also not working.

 Display is checked in configure dictionary for the field.

Please help us how to resolve it. Need to get display name of the reference field

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

to get the display value of a reference field on client side, Use the below

g_form.getDisplayBox('<field name>').value

 

-Anurag

-Anurag

View solution in original post

2 REPLIES 2

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

to get the display value of a reference field on client side, Use the below

g_form.getDisplayBox('<field name>').value

 

-Anurag

-Anurag

Sai Kumar B
Mega Sage
Mega Sage

@Renu 

Try the below

g_form.getDisplayBox('requested_for').value