How get a value of Boolean Field on table

ursnani
Giga Guru

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

10 REPLIES 10

ursnani,


In the second line, it should be "alert('The value of Ordered is ' + ga);" with a plus and not a comma.
I just tried this and it worked correctly in my instance.


find_real_file.png


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.


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


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.


Got it never mind,



i have to give as 'true'