Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have form with 3 PerplexImageUpload controls. They are all mandatory when i submit with out setting images i do not see client side validation error message. Only see it after form is submitted. Am I missing something?
No idea, when I try it the validation message trigger propertly before the submit (see the attachment). Can you check the rendered input elements have the data-val-required attributes rendered? Everything else should be handled by default jQuery unobtrusive validation. Did you include those scripts as well?
output of markup looks like:
<input type="file" name="d151eb57-de21-4ea9-e4fa-9ccbb7b9eb13" id="d151eb57-de21-4ea9-e4fa-9ccbb7b9eb13" data-val="true" data-val-required="No image">
Looks fine to me, jQuery unobtrusive validation should pick it up, if it's loaded. Can you verify some version of jquery.validate.unobtrusive is loaded? Otherwise none of the unobtrusive validation works.
It's likely when it does not work for our field types the unobtrusive validation does not work for any of Umbraco Form's built-in fieldtypes, can you check that out as well?
Its referencing jquery validate 1.13.1
That's jquery.validate, but you also need jquery.validate.unobtrusive. It really sounds like you are simply missing that include. If you copy the scripts from the Umbraco documentation into your Master / Layout page, I think it should immediately work:
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted