Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Forms problem and fix proposal

Open dk-wordpress opened this issue 10 years ago • 2 comments

Hi guys!

Currently i'm faced one more problem: if i use more than one form on the same page (without AJAX), when i submit second form, i see form errors on the first form, not on second. 2016-09-19_20-41-29

Second one, i propose to replace this line from fw-form-helpers.js file to

$input.parents('.form-builder-item').append(message);

it helps to be sure than error message will be always at the end of the field. Current code is not working with custom (replaced via third-party JS libs) checkboxes / radios

2016-09-19_20-47-02

2016-09-19_20-49-56

thank you for your attention :)

dk-wordpress avatar Sep 19 '16 17:09 dk-wordpress

To test download Unyson and Forms extension latest dev version.

ghost avatar Sep 20 '16 16:09 ghost

Second one, i propose to replace this line from fw-form-helpers.js file to

$input.parents('.form-builder-item').append(message);

I can't do that because FW_Form and fw-form-helpers.js are used not only for form builder forms but for any forms created with FW_Form where the .form-builder-item class doesn't exist.

You can overwrite the onErrors method.

ghost avatar Sep 20 '16 16:09 ghost