Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

how to get the display value in Client controller

String
Kilo Sage

Hi Team ,

am trying to fetch the display name ,but am getting the sysid of the references field 

 

$scope.page.g_form.getValue('shipto')

 

am trying to get the value using below syntax  but not working 

$scope.page.g_form.getDisplay('shipto');

 

Please help me with proper syntax 

1 ACCEPTED SOLUTION

-O-
Kilo Patron

The function name is not correct. It should be getDisplayValue().

View solution in original post

2 REPLIES 2

-O-
Kilo Patron

The function name is not correct. It should be getDisplayValue().

Prince Arora
Tera Sage

@String ,

 

Could you please try below, because "getDisplayValue" works under the Server side script using gs library:

 

$scope.page.g_form.getDisplayBox('your reference field name').value;

 

 If my answer solved your issue, please mark my answer as Correct & 👍Helpful based on the Impact!