numero = 14462
interpreted = N
texte = >>I use a checkbox in one of my forms. It enters text into the field if>>checked. On the edit page I use the following code to properly display if>>the item is checked or not. However, if I uncheck the item and hit>>change to submit the form it does not unckeck the box or empty the field.>>Am I missing something?>>>>>[cofa]=]checked[/hideif]>>>Maybe. Are you trying to change the record directly from the form, or>are you sending the form values to the next page where they are>entered into the db record with a [replace] context?>>I've found that radio buttons are easier to use than checkboxes in>most situations ... :)>>Sincerely, Ken Grome>WebDNA Solutions>http://www.smithmicro.com/webdnasolutions/>>.Ken,Thanks for the response. The code appears on the Edit page as generatedby the DatabaseHelper. It displays correct in the Edit page; however, ifthe items is unchecked and then submitted it remains checked in thedatabase. I think you are correct and I need to use radio buttons instead.Thanks again,David Wilfongdwilfong@world-wide-art.comWorld Wide Art - Purveyors of Fine Art on the Internet.Specializing in Limited Editions by Today's Top Artists.http://www.world-wide-art.com
Associated Messages, from the most recent to the oldest:
>>I use a checkbox in one of my forms. It enters text into the field if>>checked. On the edit page I use the following code to properly display if>>the item is checked or not. However, if I uncheck the item and hit>>change to submit the form it does not unckeck the box or empty the field.>>Am I missing something?>>>>>[cofa]=]checked[/hideif]>>>Maybe. Are you trying to change the record directly from the form, or>are you sending the form values to the next page where they are>entered into the db record with a [replace] context?>>I've found that radio buttons are easier to use than checkboxes in>most situations ... :)>>Sincerely, Ken Grome>WebDNA Solutions>http://www.smithmicro.com/webdnasolutions/>>.Ken,Thanks for the response. The code appears on the Edit page as generatedby the DatabaseHelper. It displays correct in the Edit page; however, ifthe items is unchecked and then submitted it remains checked in thedatabase. I think you are correct and I need to use radio buttons instead.Thanks again,David Wilfongdwilfong@world-wide-art.comWorld Wide Art - Purveyors of Fine Art on the Internet.Specializing in Limited Editions by Today's Top Artists.http://www.world-wide-art.com
dwilfong@world-wide-art.com (David Wilfong)
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...