Unable to set value of checkboxes in a UI Policy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2012 09:46 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-31-2012 10:15 PM
Set the values in quotes, like
g_form.setValue('checkbox1_cb', 'false');
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-01-2012 07:08 AM
Yeah...of course that works. Thought I've tried everything, but I knew it had to be something simple.
Thanks Jim!