how Joomla PHP: Checkbox won’t uncheck
Making a simple component. If I save a new record with the box checked, it saves fine. If I go back and uncheck a previously checked item it reverts back to checked. I thought it had something to do with a hidden field, played with putting one of those in manually but that didn’t fix it either so took it out.
Here’s where I’m at:
The edit.php file:
Also added this towards the end before the form.token:
I tried deleting the value=”1″ in the xml but then I had the opposite problem where the check wouldn’t save at all.