Skip to content

Checkbox signup?

edited January 2015 in Questions

Does anyone know of a way to grab an email address and first name from a form and based on whether a checkbox is checked, signup a user? I'd like to use such a function on both the registration and checkout page of one of my sites.

Comments

  • I have done this, can't share the code atm

    But, wrap the form in a particular div with id.
    Name the correct fields with the correct ids.
    Create a checkbox with id.

    Jquery to check if checkbox exists... if so submit button press will send over the email and name to sendy if the checkbox is checked, otherwise just do normal registration or checkout.

This discussion has been closed.