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.

Comments

rromore created an issue. See original summary.

rromore’s picture

mikejw’s picture

Status: Active » Postponed (maintainer needs more info)

Hmm, can you please give me some steps to reproduce?

rromore’s picture

Sure!

- 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.

  • bmagalhaes committed f3e71d8 on 2.0.x authored by rromore
    Issue #3016785 by rromore: Prevent client-side validation and only...
bmagalhaes’s picture

Status: Postponed (maintainer needs more info) » Fixed

Solved on version 2.0.2.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.