How to get the value of a field of a reference type on a form in a UI actions

mi2022
Tera Contributor

Hi,

I just want to get the value of a field of a reference type that is in a form in a UI actions. g_form.getDisplayValue('requester') returns number.

ex)RITM0000001

However, when I run g_form.getValue('requester'), it returns the sys id of the requester.

How can I get the value of requester by display value?

Regards,

1 ACCEPTED SOLUTION

Shantharao
Kilo Sage

if you are checking client side  g_form.getDisplayBox('requester').value
if you are checking server side  current.requester.getDisplayValue()

if it helps click on correct answer

View solution in original post

2 REPLIES 2

Shantharao
Kilo Sage

if you are checking client side  g_form.getDisplayBox('requester').value
if you are checking server side  current.requester.getDisplayValue()

if it helps click on correct answer

Hi,

Thank you.

I worked it!

Regards,