I'm having a few problems with a form located at www.ezrahomecare.com/reqforservices.html 1.) If a user clicks YES to request a brochure, I need the fields below it to automatically become required (i.e. name, address, etc..) 2.) The form is being used through the hosting company, however, on SUBMIT, I would like the page to be redirected to a thank you page that I will create. 3.) In the "services" check box area, there seems to be a glitch where some boxes are automatically checked when another is clicked on, I need to get rid of this! Any help would be much appreciated!
1. Are you doing client side validation, or strictly server side? When do you want them to know that specific fields are required? After they submit, or before? 2. You can issue the location object with Javascript: location.href='thankyou.html'; 3. Remove the <label> and </label> surrounding the options.
I'm doing client side validation. I'd also like the user to know it is required after they select that they would like a brochure.
On the form even "onSubmit" call a function that checks if the brochure is checked. If it is, then validate your required fields.