- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018 04:07 AM
Hi,
I'm creating a record producer where I have a "select box" and "reference" variables. How to capture the value entered by user from "Select Box" and "Reference" type variables. I tried g_form.getValue('variable_name') but it doesn't work.
What am I missing in syntax
Thanks.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018 06:47 AM
it should be like
current.field name=producer.variable_name;
current.audit_frequency=producer.audit_frequency;
current.biso_head=producer.sys_id;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018 04:11 AM
g_form.getValue('variable_name');
where exactly have your written this , i believe you have added in client script.
please share the scnreeshot
if you are using client script make sure UI type set to ALL

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018 04:12 AM
Ideally that should work.
for select box, it will give value of the option (not label) and for reference variable, it will give sys_id of the selected record (not display) name.
if you can post your script, it would be helpful.
Thanks,
Ali
Thank you,
Ali
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018 06:14 AM
Thanks for the response.
Following is the code,
current.audit_frequency=g_form.getValue('audit_frequency');
current.biso_head=g_form.getValue('sys_id');

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-19-2018 06:17 AM
it will not work
current does not work on client side. current will always work at server side.