- πΊπΈUnited States jcandan
Updated the issue summary based on understanding captured in β¨ Add support for multi-value fields like Name and Address fields Active .
Original report
Problem/Motivation
Address field is actually detected by 'Require on publish' module ('Warning on Empty' message is well displayed) but no indicator is added to the field label.
Might be useful for all other fields that output their widget #type as 'details'.
Remaining tasks
Add the missing 'form-required-on-publish' class to the
<summary>
tag. - πΊπΈUnited States jcandan
This may prove more complex than originally thought. See #3126210-3: Address with default country code always validates as required β .
I can remove the HTML5 required attribute via any number of hooks, but backend validation still applies and the fields are required on submit (published or not).
I'm glad we separated this from β¨ Add support for multi-value fields like Name and Address fields Active . In the meantime, as a not-so-great workaround, those wishing to apply Require on Publish to an Address field may consider leaving off a default value, and assuming the user's intent to fill out the full address when they provide a country.