Validation of Checkbox in a Form

D

Del Boy Jr

I have got a form with various fields and wish to vlidate that a checkbox
is ticked before the submit button can be pressed.

I can get the validation on the checkbox only (using some imported
javascript) OR validate entries in the textboxes but not both.

It seems that FP inserts code that overwrites/replaces the javascript to do
the onsubmit checking.

Any ideas how both the above can co-exist or (and probably easier) how I
can make FP provide validation of a checkbox (or similar tick here
solution)

Thanks in advance
 
S

Stefan B Rusynko

If you use custom JavaScript for validation, you need to do all your validation in custom JavaScript
- FP JavaScript validation renames the form and adds an event to the form tag

Easiest way to convert is open the page in a browser (view source) & copy the FP JavaScript to note pad, then in FP remove all FP
validation and past the script from notepad into your page (you will need to rename the function call to match your form name /
function

--




| I have got a form with various fields and wish to vlidate that a checkbox
| is ticked before the submit button can be pressed.
|
| I can get the validation on the checkbox only (using some imported
| javascript) OR validate entries in the textboxes but not both.
|
| It seems that FP inserts code that overwrites/replaces the javascript to do
| the onsubmit checking.
|
| Any ideas how both the above can co-exist or (and probably easier) how I
| can make FP provide validation of a checkbox (or similar tick here
| solution)
|
| Thanks in advance
 
D

Del Boy Jr

Thanks for the prompt reply - I think I get what you're saying...

Extract the script code that FP generates for validating the rest of the
boxes and embed this manually into the script used for validating the
checkbox.

I'll give it a go and see what happens

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top