Field Value getting Displayed on a Reference Field Instead of Label?

shloke04
Kilo Patron

Hi All,

We have a Field on a Custom Table, which is referencing to a String Field on some different table having several choices . Now when I Select any Value from the Reference field it displays me the Backend Value of the Choice field instead of the choice Label.

Have checked the Display property as True for the Referenced field. Kindly Assist!!

Regards,
Shloke

Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke
11 REPLIES 11

Correct field has been set with Display=true. That was the first thing I checked. Still the issue persists.



Regards,


Shloke


Hope this helps. Please mark the answer as correct/helpful based on impact.

Regards,
Shloke

Jeet
Tera Expert

Hi Bro,



I have explored this but it seems you have to write client script onLoad to populate label on the form instead of choice value.



you can get the label, ---- on selection it is showing label only but after inserting record it is showing choice value instead of choice label in reference field.



So Just write onLoad client script once you reopen the record it will show only label.



How to get choice field label from choice type field?



var choiceValue = g_form.getValue(<fieldName>);


var choiceLabel = g_form.getOption(<fieldName>, choiceValue).text;





Thanks,


Jeet