Currently if client-side validation is enabled on an entity creation/edit form, the form cannot be submitted without filling out all required fields. This issue is to disable client-side validation when saving drafts, and only displaying form errors if a field's value cannot be empty as defined by the field's storage definition.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Screen Shot 2019-03-03 at 11.51.35 AM.png | 57.56 KB | rromore |
| #4 | Screen Shot 2019-03-03 at 11.51.07 AM.png | 101.54 KB | rromore |
| #2 | disable_client_side_validation-3016785-1.patch | 1.69 KB | rromore |
Comments
Comment #2
rromore commentedComment #3
mikejw commentedHmm, can you please give me some steps to reproduce?
Comment #4
rromore commentedSure!
- Enable the module.
- Ensure a content type has a required field besides title.
- Go to the content type's add form.
- Fill out fields except the required field you just created.
- Try submitting form using entity_draft's submit button.
- If you're using a newer browser, you should now see a tooltip on the required field informing you that the required field cannot be empty. Otherwise on submission you should see a validation failed message, indicating the required field cannot be empty.
Comment #6
bmagalhaes commentedSolved on version 2.0.2.