Hi
I have a checkbox in all my forms. This checkbox is ” Yes i want to register”
I want register addon ; register user if this checkbox is selected.
Is that possible ?
WordPress Forms
Hi
I have a checkbox in all my forms. This checkbox is ” Yes i want to register”
I want register addon ; register user if this checkbox is selected.
Is that possible ?
I think I fell in love. Thanks for this awesome plugin!
Justin Schüler (BN Ventures)Formidable is a dream come true! It works like magic.
Fitz (Fitz Magic)Copyright © 2013 Strategy11, LLC
October 22, 2012 at 8:58 am
Here are a couple related posts.
http://formidablepro.com/help-desk/registration-add-on-is-conditional-registration-possible/
http://formidablepro.com/help-desk/conditionnal-registration-using-add-on/
October 22, 2012 at 12:32 pm
Thanks Stephanie, i looked at related posts.
And i used a custom code that you have provided in taht post:http://formidablepro.com/help-desk/conditionnal-registration-using-add-on/
But i have a problem. I have a checkbox. This code auto registers if checkbox is NOT selected. I need opposite of this. I want autoregister if checkbox is selected. Can you help me about this please ?
Here is the code i used:
add_filter('frm_validate_field_entry', 'my_custom_validation', 10, 3);
function my_custom_validation($errors, $posted_field, $posted_value){
if($posted_field->id == 142){ //change 25 to the ID of the email field
if(isset($_POST['item_meta'][155])){ //change 30 to the ID of the checkbox field
unset($_POST['frm_register']);
}
}
return $errors;
}
October 22, 2012 at 1:15 pm
Add a ! to this line:
if(!isset($_POST['item_meta'][155])){
Topic closed.