I want to submit a form only if a checkbox is checked (as opposed to submit a form via the checkbox)
I don’t need to save the checking of the checkbox. It is similar to “I agree to EULA bla bla”
Prefer not using javascript for this
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I’ve solved the issue using a
validates :terms_of_service, :acceptance => truein the model and adding a checkbox in the form block.That solved that issue quick and easy.