Validation of Checkbox in a Form

  • Thread starter Thread starter Del Boy Jr
  • Start date Start date
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
 
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
 
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
 
Back
Top