changed check box checked attribute not recognised

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
amc
Profound User
Posts: 67
Joined: Thu Jul 29, 2010 1:25 am
First Name: Tony
Last Name: Cusack
Company Name: Welding Industries
City: Adelaide
State / Province: Outside Canada/USA
Zip / Postal Code: 5139
Country: Australia
Location: Adelaide, South Australia
Contact:

changed check box checked attribute not recognised

Post 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;
amc
Profound User
Posts: 67
Joined: Thu Jul 29, 2010 1:25 am
First Name: Tony
Last Name: Cusack
Company Name: Welding Industries
City: Adelaide
State / Province: Outside Canada/USA
Zip / Postal Code: 5139
Country: Australia
Location: Adelaide, South Australia
Contact:

Re: changed check box checked attribute not recognised

Post by amc »

solved this one, set the modified attribute on.

Code: Select all

getObj("Checkbox1").checked = !getObj("Checkbox1").checked;
getObj("Checkbox1").modified = true;
User avatar
Brian
Profound Logic Staff Member
Posts: 286
Joined: Thu Apr 14, 2011 10:23 am
First Name: Brian
Last Name: May
Company Name: Profound Logic Software
Contact:

Re: changed check box checked attribute not recognised

Post by Brian »

Glad you solved it. I missed that post all together.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests