Jump to content

Validate Checkbox Separately


KJ

Recommended Posts

I've spent a few week renewing my PHP for a form I use on my son's Web site. I'm pleased to say the form functions fine in every way, but I would prefer that the 'Accept privacy policy' checkbox (at the foot of the form), validates only after all the other validation has passed. Currently if any mistakes are made by the user when completing the form, the 'privacy' checkbox error tiles beneath any other errors, which is to be expected with the current script. I've been trying to figure out a function which will allow all the form fields to validate and only then would the 'privacy' field validation to kick in. I've spent hours trying to figure out a solution, but to no avail, though I'm sure there is one.

Any and all help will be VERY MUCH appreciated.

 

Very pleased to report that I've managed to solve the problem and the form now functions as desired.

Thank you! to the 69 who viewed the post and possibly considered a solution.

Edited by KJ
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...