Search

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details