Can't use "ForceIncomingBool('Attribut', 1)"to get the result of a checkbox
When using ForceIncomingBool to get the result of a checkbox, if the user didn't checked the box or unchecked it, ForceIncomingBool will return the default value since there is only a $_GET['Attribut'] or a $_POST['Attribut'] when the box is checked.
0
This discussion has been closed.
Comments
ForceIncomingBool('Attribut', 0);
?ForceIncomingBool('Attribut', $Context->Configuration['Attribut']);