If I insert the form in a RTE as a Razor script, the scripts are not inserted on the page and I get an error in
$.validator.setDefaults({})
in contourform.js because the validator is not defined.
Am I supposed to insert them myself? That doesn't seems logical, as I would have to insert
them on every page because I don't know where the client is inserted the form.
Missing validation scripts when form inserted as Razor in RTE
Hi
When I preview a form these scripts are included in the rendered page
If I insert the form in a RTE as a Razor script, the scripts are not inserted on the page and I get an error in
in contourform.js because the validator is not defined.
Am I supposed to insert them myself? That doesn't seems logical, as I would have to insert them on every page because I don't know where the client is inserted the form.
I'm running Umbraco 6.0.2 and Contour 3.0.9
Kind Regards
Bo
Comment author was deleted
Yeah needs to be done manually
Comment author was deleted
Or you could update the form view and place them there...
I'll do that, as I'm allready modifying it anyway.
Thanks for your help.
How do you update them manually in the view?
I'm facing the same problem but can't figure out what needs to be added in the view
@Jeric
I inserted these lines:
in
right after
Just make sure that it doesn't collide with other scripts on that page, ie jquery
/Bo
Thanks Kingo, I'll try it out.
/Jeric
Hi Bo,
I've tried that, and the below error came out
Uncaught ReferenceError: jQuery is not defined contourform.js:54 (which is the last line as below)
Hi Bo,
Found the errors and fixed it. THanks for the help :)
Hi Jeric,
What errors did you find? I'm currently having the exact same problem.
Thanks in advance!
/Hampus
Hi (Halle), Mine was caused by other API that i'm using which strips out the validation bit
is working on a reply...