if fields of type 'checkbox' have a default value, the will have a hidden input field to set this value

This commit is contained in:
Uwe Steinmann 2023-10-13 11:37:07 +02:00
parent 40f2311b91
commit 14a3da7855

View File

@ -1217,6 +1217,8 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
default:
switch($value['type']) {
default:
if(!empty($value['type']) && $value['type'] == 'checkbox' && isset($value['default']) && !empty($value['name']))
echo '<input type="hidden" name="'.$value['name'].'" value="'.$value['default'].'" />';
if(!empty($value['addon']))
echo "<span class=\"input-append\">";
echo '<input'.