Editing a checkbox entry
This is an open discussion with 2 replies, filed under General.
Search
Add a hidden input before the checkbox, with the same name
attribute and the value
attribute set to no
, like
<input type="hidden" name="fields[enabled]" value="no">
This way you have a default value that get overriden when the chechboc is checked.
Thank you, it works!
Create an account or sign in to comment.
I have a very strange problem. When I try to modify a checkbox entry provided with:
I can change it from "no" to "yes", but not from "yes" to "no". I can modify other text fields without any problems.