checkbox and radio multipage error message error
-
Hi,
I think there is an error showing info to the user when the user does not check the required checkbox or radio button on a multi-page form.
Basically – in the above scenario no information is given to the user and he/she may not be aware that he/she has omitted the required field.
I think the problem is with this piece of code in the file “frontend-script-init.min.js”. the line:
return a(‘[for=”‘ + u + ‘”]’).parent().addClass(“has-error”)
looks for example for an item with for=”fld_5203919″ attribute.
Meanwhile the for attributes in the html end with _1, e.g. fld_5203919_1.
no element is found and no element is marked as missing.
Can you please fix it and le me know when it’s done? For now I am just modifying these lines in the java script file “frontend-script-init.min.js”:
return a('[for="' + u + '"]').parent().addClass("has-error")
into
return a('[for="' + u + '_1"]').parent().addClass("has-error")
and
a('[for="' + u + '"]').parent().removeClass("has-error")
into
a('[for="' + u + '_1"]').parent().removeClass("has-error")
Thanks and thank you for a great plugin!
- The topic ‘checkbox and radio multipage error message error’ is closed to new replies.