2 users online. Create an account or sign in to join them.Users
This is an open discussion with 2 replies, filed under General.
I have a very strange problem. When I try to modify a checkbox entry provided with:
<input type="checkbox" name="fields[enabled]" value="yes">
I can change it from "no" to "yes", but not from "yes" to "no".
I can modify other text fields without any problems.
Add a hidden input before the checkbox, with the same name attribute and the valueattribute 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.
Contact the team
Symphony • Open Source XSLT CMS