Jump to content

Checkboxes won't update on the web


This topic is 8536 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

I have a cfml webform. When users check a checkbox it updates the file properly. If they return to edit the record and uncheck a checkbox, the update will not take....any other updating takes (text fields, dropdowns, etc). Any ideas? Unlimited 5.02 Thanks

Link to comment
Share on other sites

so it updates the database correctly but will not display on the HTML page??

[FMP-ValueList: checkboxname, list=departments]

<input type="checkbox" name="checkboxname" value="[FMP-ValueListItem]" [FMP-valuelistchecked]>

[FMP-ValueListItem]

[/FMP-ValueList]

do you have the part that is bold in your html code.. it will check if the check box is checked in the database and then check it if it is.

[This message has been edited by bman (edited March 13, 2001).]

Link to comment
Share on other sites

  • Newbies

Thanks for the reply. It will update when the record is created and display properly, but it will neither update the database nor the display when changes are made using edit. IOW, only when a new record is created. hmmm...

Link to comment
Share on other sites

Put a hidden field on the form (just after the check boxes) that inserts the value "". The cdml code would be

<input type=hidden name=fieldname value="">

Link to comment
Share on other sites

This topic is 8536 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.