firefox 57 does not handle required form fields correctly
We introduced a new website a month ago based on w3.css for responsive design. One of our checkout forms includes to address blocks, one for billing and one for shipping. The division containing the shipping fields is not visible unless the user asks to add a new shipping address.
The problem is this:
Several on the key fields in the shipping block are marked as required. Even though the fields are not visible, Firefox Quantum refuses to submit the form because these hidden, required fields are not filled in. It also gives no indication that this is the problem, I assume because the error messages are being added within an invisible division.
Chrome and Explorer both ignore the hidden fields and submit the form, which, in my opinion is the correct behavior.
Wszystkie odpowiedzi (6)
Forum and where?
Could you create a reduced test case demonstrating the problem, or provide a link to the page (where hopefully one doesn't need to create an account to check the issue).
I have had to develop a workaround which is now in place on our website, www.devotea.com.
The problem can be simulated by setting up a short form with two text input fields, both marked as required. Place the second field within a division with visibility:none.
Fill in the visible field and try to submit the form. Chrome or Explorer should comply without arguing about it, Firefox Quantum should do absolutely nothing, including no error message.
teaman5 said
The problem can be simulated by setting up a short form with two text input fields, both marked as required. Place the second field within a division with visibility:none.
Yes, but web developers usually are in a better position than support volunteers to be able to whip up test cases.
Also, none is not one of the conventional values for the visibility property. https://developer.mozilla.org/docs/Web/CSS/visibility
Since I have already invested a day and a half in identifying the problem and developing a work around, I'm not interested in doing any more work on it. I posted the question to alert the mozilla team to a situation where Quantum is handling CSS and HTML differently from Chrome and Explorer, and also from the previous version of Firefox. That is a design issue that they need to either address or ignore as they see fit.
Yes, "hidden" is correct form.
This question can be closed as far as I'm concerned.
Okay, someone else can file a bug for it when it bites them.