Page 1 of 1

changed check box checked attribute not recognised

Posted: Sun Jul 31, 2011 4:07 am
by amc
If I change the checked attribute of a checkbox with JavaScript, the check box on the screen shows the change, but on return to the program, the change is not recognized - it still sees that checkbox as whatever state it was when the screen was rendered.

i am using the following js

Code: Select all

getObj("Checkbox1").checked = !getObj("Checkbox1").checked;

Re: changed check box checked attribute not recognised

Posted: Tue Aug 02, 2011 1:05 am
by amc
solved this one, set the modified attribute on.

Code: Select all

getObj("Checkbox1").checked = !getObj("Checkbox1").checked;
getObj("Checkbox1").modified = true;

Re: changed check box checked attribute not recognised

Posted: Tue Aug 02, 2011 3:48 pm
by Brian
Glad you solved it. I missed that post all together.