- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2016 03:38 AM
Hey,
Could anyone please advise on how to get the display value for any reference field (CI field) using the onSubmit Catalog Client script?
Using g_form.getValue('u_device_ref_1'), I am getting the sys_id of this field
And with g_form.getDisplayValue('u_device_ref_1'), I am getting blank value.
Thanks in Advance,
Rathika.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2016 03:56 AM
HI Rathika,
You can use g_form.getDisplayBox('field_name');
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2016 03:47 AM
You need to use getDisplayBox() function.
Please go through below threads.
Re: getValue on a reference field
Re: catalog client script onsubmit
Thanks,
Mihir
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2016 03:56 AM
HI Rathika,
You can use g_form.getDisplayBox('field_name');
Thanks
Prashant
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-25-2017 05:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-02-2017 05:35 AM
I need to post a correction to the above. This is missing a .value at the end of the statement. It should be:
g_form.getDisplayBox('field_name').value;
Now this works for me too.
Thanks,
Brad