Unable to set value of checkboxes in a UI Policy

Riddel
Tera Expert

I have a simple UI Policy w/ 1 condition. This condition evaluates to true, and the 3 actions work fine (sets 3 checkboxes to visible).
My goal is to make the checkboxes to default as checked and visible when the condition is true, and hidden and unchecked when false.

Well, it seems easy, so I must be missing *something*. Under this ui policy, I have the following line under "Execute when false":


g_form.setValue('checkbox1_cb', false);

and a similar line under "Execute when true":

g_form.setValue('checkbox1_cb', true);


No matter what I do, all the checkboxes stay false (unchecked). But the condition IS TRUE, which is why the policy actions work fine.

What am I missing? Even tried this on the demo box (demo20) and still couldn't mark the checkbox.

2 REPLIES 2

Jim Coyne
Kilo Patron

Set the values in quotes, like


g_form.setValue('checkbox1_cb', 'false');


Riddel
Tera Expert

Yeah...of course that works. Thought I've tried everything, but I knew it had to be something simple.

Thanks Jim!