WIFM Sitecore Client Side Mandatory Field Validation

Are Sitecore Webforms provided for marketers for client side validation of required fields out of the box?

The documentation only mentions client side validation against validators and nothing about the required functionality of the field.

We are running Sitecore 7.2, WFFM 2.4

+3
validation sitecore sitecore7 sitecore7.2 web-forms-for-marketers


source to share


3 answers


Are you using MVC layout (cshtml)? There are many bugs in the current version (2.4 rev.141008) of WFFM for MVC layouts.

One of the errors is related to the lack of scripts on the form interface.

Until the update happens, a workaround is to add these packages to the \ Views \ Form \ Index.cshtml file:



@Scripts.Render("~/bundles/wffm/jquery")
@Scripts.Render("~/bundles/wffm/scripts")
@Styles.Render("~/content/wffm/jquery")
@Styles.Render("~/content/wffm/themes")

      

Does it help?

+4


source to share


The validation element contains a Script Validation field. Its purpose is to indicate if client side validation is enabled. I believe this is what you are missing.



0


source to share


To get basic regex functionality or field validation, you need to set these fields in the form editor.

enter image description here

Then set the "Validation" field in the "Behavior" section of your field, i.e.

/ sitecore / system / Modules / Web forms for marketers / Settings / Field Types / Custom / Custom text on a separate line

0


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics