How does this work? I could not find anything in the documentation or on this forum.
]]>I have two issues currently with a form on forminator
Thank you.
]]>I added some custom fields to my shipping address and all works fine except for a checkbox field, it’s value is not stored.
Are checkbox fields not supported?
Is there a solution?
Thanks for help!
]]>The link above is temporary.
]]>Although I read Advanced Topics time again, I still can’t work out how a checkbox field can be validated.
As far as the checkbox is concerned, the code I entered in theme-my-login.php is as follows:
function add_tml_registration_form_fields() {
tml_add_form_field( 'register', 'agreement', array(
'type' => 'checkbox',
'label' => __( 'sample text' ),
'value' => tml_get_request_value( 'agreement', 'post' ),
'id' => 'agreement',
'priority' => 15,
) );
}
function validate_tml_registration_form_fields( $errors ) {
if ( ( $_POST['agreement'] == '') ) {
$errors->add( 'empty_agreement', '<strong>ERROR</strong>: To register with us, you are required to agree to our Terms and Conditions.' );
}
}
Please provide me with suggestions to get the validation working.
]]>great plugin! But isnt it possible to integrate a checkbox for gdpr compliance in your popups in free version?
Thanks in advance
Best Regards
Phil