On my site I added a REQUIRED time field to my stores.
The problem is that if no schedule is entered, the field is still validated.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Capture d’écran du 2020-02-07 20-17-57.png | 126.07 KB | zenimagine |
On my site I added a REQUIRED time field to my stores.
The problem is that if no schedule is entered, the field is still validated.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Capture d’écran du 2020-02-07 20-17-57.png | 126.07 KB | zenimagine |
Comments
Comment #2
johnvI am not sure what you mean. Can you provide a screenshot?
Comment #3
zenimagine commentedI add an "Office hours" field, I check the "Required field" box. When I create a form, and the "Office hours" field is empty, the form can still be validated.
Normally it should display an error message to say that the chapter "Office hours" is required.
Comment #4
johnvPlease test latest dev-version. It may be resolved, as part of #3110642: Introduce OfficeHoursDateTime::get() and isEmpty().
Please report back your test results.
Comment #5
zenimagine commentedThanks, it works ;-)
But the template to display the schedules in the form is disastrous. We really have to deal with the problem of responsive design. The schedules are unusable on the desktop when there are error messages and it is even worse on mobile.
Comment #6
johnvI guess, this is fixed, then.
Let's leave the other topic in the 'responsive' issue.
Groeten,
Comment #7
johnv