How get a value of Boolean Field on table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2018 01:27 PM
Hi,
I have a True or false Checkbox in my custom table and when i am trying to get the value of that checkbox its not retruning anything.
can anyone please help
var ga = g_form.getBooleanValue('My field name');
var ga = g-_from.getValue('My field Nmae');
I tried both the above but returning nothing.
Cna anyone please help
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2018 02:05 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2018 02:12 PM
Great catch! But my statement about the field being on the form also applies as well as the same "blank" message will also happen if the field isn't on the form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2018 02:13 PM
Thanks Nick,
Now my actual requirement is Based on that boolean value i want to make all the fields readOnly which on the form.
I ma using as elow
var ga = g_form.getValue('u_ordered');
alert('The value of Ordered is ' +ga);
if (ga == 'true'){
g_form.setReadOnly('my field', true);
but is not making that field readonly .
can you please help with that also.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2018 02:20 PM
How are you trying to accomplish this? Are you using an onchange client script based on your "u_ordered" field?
Edit: NVM, I see you figured it out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-03-2018 02:18 PM
Got it never mind,
i have to give as 'true'