Hi, how can i make the checkbox beeing active by default in your contactform?
Although in ALB there is no option for that i can see in the standard-editor this:
[av_contact_field label='Gratis Mustermappe bestellen' type='checkbox' options='' check='yes' width='element_three_fourth'][/av_contact_field]
But either “check=’yes’” nor “check=’true’” nor “check=’’” gives the wanted result
Help is very much appreciated
Regards Max
Hi Max,
Could you provide us with a link to the site in question so that we can take a closer look please?
Best regards,
Rikard
Hi!
There’s a bit of a confusion here, the check
attribute is used for validation (is_empty, is_number, etc). currently there’s no option to enable pre-checking on checkboxes, but you can modify the source to make it work, look for this line in /framework/php/class-form-generator.php
if(!empty($_POST[$id])) $checked = 'checked="checked"';
Change it to:
$checked = 'checked="checked"';
Regards,
Josue