PerplexImageUpload client side validation not firing
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?
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?
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:
PerplexImageUpload client side validation not firing
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?
Regards
Ismail
Hi Ismail,
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?Regards, Daniel
output of markup looks like:
Regards
Ismial
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?
Regards, Daniël
Daniel,
Its referencing jquery validate 1.13.1
Regards
Ismail
Ismail,
That's
jquery.validate
, but you also needjquery.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:https://our.umbraco.org/documentation/Add-ons/umbracoforms/developer/Prepping-Frontend/
-- Daniël
is working on a reply...