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
BedrockMission!

Learn More

View all

Sign in to view all badges

FormsHelper clientvalidation on 6.2

Avatar

Avatar
Give Back 3
Level 2
aemanonymous
Level 2

Likes

10 likes

Total Posts

55 posts

Correct Reply

2 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 10
Validate 1
View profile

Avatar
Give Back 3
Level 2
aemanonymous
Level 2

Likes

10 likes

Total Posts

55 posts

Correct Reply

2 solutions
Top badges earned
Give Back 3
Give Back
Ignite 1
Validate 10
Validate 1
View profile
aemanonymous
Level 2

10-02-2017

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

Accepted Solutions (0)

Answers (0)