The CreatorCon Call for Content is officially open! Get started here.

How to get Reference field value through client script?

rezacol
Mega Expert

Guys -

Is there a way to get the display value of the Reference field in client script ?? When I do g_form.getValue('ref_field'), I am getting the sys_id instead of value. Letme know is there a way to get the display value ??

 

Thanks in Advance,

Reza R.

1 ACCEPTED SOLUTION

rezacol
Mega Expert

Thanks guys for all your response. But I was able to complete my client requirements via the script in UI policy.


View solution in original post

8 REPLIES 8

We don't find any thing in that thread.

Thanks 🙂

 

rezacol
Mega Expert

Thanks guys for all your response. But I was able to complete my client requirements via the script in UI policy.


nm13
Kilo Guru

You Can use this: 

g_form.getDisplayValue('ref_field');

This will return the display value and not the sysId of the field. 

Dave65
Tera Contributor

This returns the Display value of the form, not the field I want the value of.