Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

FormsHelper clientvalidation on 6.2

aemanonymous
Level 4
Level 4

On 5.6.1, I could see that the class Foundation FormsHelper class injects the cq.forms client library on the page if the clientside validation is turned on the Start form component. However after the upgrade to 6.2, the cq.forms client library is not injected.The other validation snippets are getting injected on page (something like the following) 

function cq5forms_preCheck_defaultForm(submitid) {
    var dMsgs = "Please fill out the required field.";
if (cq5forms_isEmpty(document.forms["__some path__mainParsys_simpleform"].elements["firstName"])) {cq5forms_showMsg('__some path__mainParsys_simpleform','firstName','This field is required'); return false; }
    return true;
  } 

Any ideas

0 Replies