A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

Why doesn't EnableClientValidation (XForms) work as expected?

Vote:
 

I have this XForm view that renders correctly. I have also added

@{Html.EnableClientValidation(true);}

before

Html.RenderXForm(Model.Form);

EnableClientValidation adds the html element

but that's it. No client side validation is happening and I still have to rely on the server side form validation. I have followed the guide from  http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-CMS/75/XForms/XForms/ (which says add EnableClientValidation).

What more do I have to do to make XForm validate on the client?
Thanks!

#117402
Feb 20, 2015 9:33
Vote:
 

Hi, what is your CMS version? I've seen mutliple forum threads where other devs have experienced a similar issue, some on 7 and others on 7.5.

#117445
Feb 20, 2015 17:25
Vote:
 

Hi,

I use version 7. I can also mention that I have "normal" forms that I validate with help of Jquery.Unobtrustive/Validate which works (if XForms uses the same library?).

#117451
Feb 21, 2015 11:31
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.