g_form.getDisplayValue('u_student') is not working in client script in “Xanadu” version
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 06:57 PM
i have a onload client script and i am retriving displayvalue of a refernce field('u_student).But it is not working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 07:52 PM
Client GlideRecord object does not support getDisplayValue() function... It would only be supported when it runs on gliderecord object at server side.
Thanks
dgarad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 07:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 10:08 PM
@Community Alums both getDisplayBox() and getDisplayValue() both are not working ,Even both are not showing in code suggestion.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2024 10:29 PM
Please use below code to get the value, it works only your field type is reference.
Here I am taking an example called field on incident form,
var student = g_form.getReference('caller_id');
alert('student.user_name');
Please replace caller_id with your field name
Please mark it as correct/helpful If it works for you.
Thanks,
Vennela