View Full Version : Checkbox not syncing with Text Fields

06-18-2008, 03:29 AM
Here is the page I'm working on: http://www.flicknote.com/temp/form.html

All I am trying to do is get the corresponding checkboxes to "tick" when a user enters text into the corresponding checkbox. If they delete the text from the text box the corresponding checkboxes would "untick."

I have everything working except for when a user deletes the text from the text field. Checkbox #1 "unticks" but Checkbox #2 does not "untick."

I have tried everything I can think of. Any help would be so very much appreciated! :)

Best Regards,
Dustin W.

Arty Effem
06-18-2008, 04:24 AM
I have tried everything I can think of. Have you thought of actually adding an instruction to uncheck it? You clearly know how to write one but you just haven't done so.

Also you're making unnecessary use of eval.

eval("document." + FormName + "." + CheckName + w + ".checked=false");

can be written as

document[FormName + "." + CheckName + w ].checked=false;

06-18-2008, 05:11 AM
here is the solution for others with the same issue:


Regards, Dustin