conditional registration

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 ?

 

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/

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;
}

Add a ! to this line:
if(!isset($_POST['item_meta'][155])){

Topic closed.