- Issue created by @mxh
- 🇩🇪Germany jurgenhaas Gottmadingen
Not sure about all the details involved, I was just thinking about how I would hide such a field when writing a hook in PHP. Isn't it possible there to set
"#access" => FALSE
on the top level of a field widget? In a case of a date range field, that would be the mentioned fieldset and by that, the whole widget would be excluded from the form and not only the value field(s) contained inside.Isn't it possible to get to something like that in the Trait above?
- 🇩🇪Germany mxh Offenburg
Isn't it possible there to set "#access" => FALSE on the top level of a field widget?
I think this was implemented in the very first beginning of eca_form. Then we realized that it wasn't sufficient and ended up with the current logic, that tries to always provide a "real" field element. The fieldset for the date range field is not a "real" field element, as it's just a theme function (not a render element plugin).
The thing is, that the current mechanic seems to work well now over all form field actions, but only for "simple" single-column fields. Changing the logic at this point will probably change the behavior of existing process configurations, which should be avoided. I'd like to find a least-invasive approach for this problem.
- 🇩🇪Germany jurgenhaas Gottmadingen
That's usually OK. However, as we will be going for 2.0 as the next release, a breaking change would be acceptable, if we provided a reasonable change record and let people know what to look out for to get their existing models updated.
It feels like long term, it would be preferable, to do a restart on this now. I remember some other issues where we touched that trait. It could well be kind of a time-bomb, so I'd be OK to go for a "real" fix for 2.0
- 🇩🇪Germany mxh Offenburg
There is a reason why the trait is implemented the way it is right now. And as mentioned in #3, the mechanic works well for single-column fields. I don't see a justification for a "restart", and I don't know how to "restart" this. We've come a long way to make this work, and a "restart" will more likely just break existing things. I vote for extending the existing logic to be more sensitive regarding multi-column fields.
- Assigned to mxh
- @mxh opened merge request.
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 1:58pm 13 March 2023 - 🇩🇪Germany mxh Offenburg
Turns out the affected components are flagging actions, where it makes sense to not automatically jump to a field element.
- Status changed to RTBC
over 1 year ago 3:42pm 15 March 2023 -
jurgenhaas →
committed 91e15dce on 1.2.x authored by
mxh →
Issue #3346508 by mxh, jurgenhaas: eca_form: Form field actions are not...
-
jurgenhaas →
committed 91e15dce on 1.2.x authored by
mxh →
-
jurgenhaas →
committed 69e6779b on 1.1.x authored by
mxh →
Issue #3346508 by mxh, jurgenhaas: eca_form: Form field actions are not...
-
jurgenhaas →
committed 69e6779b on 1.1.x authored by
mxh →
- Status changed to Fixed
over 1 year ago 10:14am 16 March 2023 Automatically closed - issue fixed for 2 weeks with no activity.