Checkbox?
Posted: Tue Nov 21, 2023 6:05 pm
I am trying to implement a checkbox in a form. I have tried: Bootstrap, Default and jQuery UI. I want to use Bootstrap due to the look and low impact on resources + it said in help this style is actively being developed.
Also read the help in QBB on checkboxes, it says if you want to set the value to unchecked enter ON|OFF in the value and I have the default set to not checked.
If I check the checkbox things work as expected with no errors on submit. However, if I leave the checkbox unchecked I get the following error: PHP Warning: Undefined array key "pkupUrgent" in C:\inetpub\wwwroot\Pickups\Cus-Pickup1.php on line 32
pkupUrgent is the ID for the checkbox.
I went out in Google and see many others have this exact error. I have read through quite a few threads and so far I do not see any solution to this error. Is there something you have to do in WWB as far as settings for the checkbox to get it to work when being unchecked?
Many thanks in advance for anyone that can assist!
Pete,
Also read the help in QBB on checkboxes, it says if you want to set the value to unchecked enter ON|OFF in the value and I have the default set to not checked.
If I check the checkbox things work as expected with no errors on submit. However, if I leave the checkbox unchecked I get the following error: PHP Warning: Undefined array key "pkupUrgent" in C:\inetpub\wwwroot\Pickups\Cus-Pickup1.php on line 32
pkupUrgent is the ID for the checkbox.
I went out in Google and see many others have this exact error. I have read through quite a few threads and so far I do not see any solution to this error. Is there something you have to do in WWB as far as settings for the checkbox to get it to work when being unchecked?
Many thanks in advance for anyone that can assist!
Pete,