Field Value getting Displayed on a Reference Field Instead of Label?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2017 06:20 AM
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
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2017 11:49 AM
Correct field has been set with Display=true. That was the first thing I checked. Still the issue persists.
Regards,
Shloke
Regards,
Shloke
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2017 10:43 PM
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