hmm... now I've got the validation working, I can't submit the form at all - highlights the three text fields I have whic are mandatory, but once they are filled in, submit still won't do anything....
Ok might be that the server validation is failing (so a bug) do you have the js scripts on your frontend for the validation? jquery validate, jquery validate unobtrosive?
Well I tested and both client and server side validation is working... and since it is working in preview mode in your case... any chance I can take a look at your site? You can mail details to tg at umbraco dot com
Mandatory Checkbox
Hello,
I need to ensure that on my form submit can only happen if certain checkboxes are ticked (e.g. accept T&C's etc).
Making them mandatory doesn't seem to have any effect - is there another way?
Thanks
Tom
Comment author was deleted
Hmm that should work, what Contour version are you running?
Version 3.0
Comment author was deleted
Ok I'll try to reproduce
hmm... now I've got the validation working, I can't submit the form at all - highlights the three text fields I have whic are mandatory, but once they are filled in, submit still won't do anything....
ignore that last post was an error on my part... the mandatory issue on cehck-boxes still exists though
Hi Tim
did you manage to reproduce the issue?
Thanks
Tom
Comment author was deleted
Looking into it this afternoon, will report back here :)
Comment author was deleted
Just checked and it works like expected... using latest contour
Are you using the razor or usercontrol macro to output your form?
im using razor to output a custom form /Umbraco/Plugins/umbracoContour/Views/Forms/c3b23066-dd2b-4bbc-905e-9baebd3f6ffc/Form.cshtml
Specifically the code for rendering the checkboxes (as I need them rendered under a specific area) is
Comment author was deleted
Ok maybe try restoring the original views for a sec to see if it works in that case
Ok I reverted and still had the same issue...
Comment author was deleted
Does it also happen when you preview the form?
I've reverted back to my custom form, and the preview seems to work!
Comment author was deleted
Ok might be that the server validation is failing (so a bug) do you have the js scripts on your frontend for the validation? jquery validate, jquery validate unobtrosive?
Ive got the following:
Comment author was deleted
Yeah those should do it
Hi Tim, did you find time to work out what the issue was ?
Comment author was deleted
Hey Tom,
Well I tested and both client and server side validation is working... and since it is working in preview mode in your case... any chance I can take a look at your site? You can mail details to tg at umbraco dot com
Cheers,
Tim
is working on a reply...