During the installation, on the "configure site" form, error messages are placed above the form when required fields are empty, or have invalid values. When such an error is corrected, but not all problems were solved yet, you would expect that only the error messages for unresolved problems remain. However, all error messages remain visible above the form, also for fields that now have a valid value.
To be able to make the screenshots below, I manually added a novalidate
attribute to the form to disable client-side HTML5 validation. In most modern browsers, this problem will not occur because in-browser validation often prevents the form from being submitted.
Demo
Step 1: I submit the form with two problems: a missing site name and an invalid e-mail address. The result is this:
Step 2: I correct the site name, but the e-mail address is still invalid. I expect that there is only one error message left, and that the error message about the site name is cleared. Instead the result is this:
Comment | File | Size | Author |
---|---|---|---|
install-errors-not-cleared-2.png | 31.96 KB | marcvangend | |
install-errors-not-cleared-1.png | 30.72 KB | marcvangend |
Comments
Comment #3
cilefen CreditAttribution: cilefen commentedComment #4
dipakmdhrm CreditAttribution: dipakmdhrm as a volunteer commentedThis has already been fixed.
Form field validation is now client-side and user is alerted if there is unexpected data in field when submit buttion is clicked.
Comment #5
cilefen CreditAttribution: cilefen commentedExcept for at least mismatched passwords, which can cause #2801621: Form validation errors from "Configure site" are displayed after a successful installation.
Comment #12
quietone CreditAttribution: quietone as a volunteer commented@marcvangend, thanks for reporting this problem.
Closing this as a duplicate of #2586721: Error/Warning/Info messages are retained after install.
If that is incorrect, just restore the status to 'Active' and add a comment explaining why this is not a duplicate.
Thx.