statamic / ideas

💡Discussions on ideas and feature requests for Statamic
https://statamic.dev
32 stars 1 forks source link

Fieldtypes/Fields Conditions - Disabled input state instead of show/hide #1242

Open nicolas-giuristante opened 1 month ago

nicolas-giuristante commented 1 month ago

Hello,

I think a lot of us could benefit from a new type of condition type. Instead of only showing/hiding a field based on a condition, I think it would be great if we could do the same but set the field as disabled instead of simply hiding it.

This would be particularly useful when lots of fields depends on other conditions but don't want to change the layout of the fieldset builder. The biggest offender is, since the builder use a flex-wrap technique to stack columns fields gets pushed around by the flex behaviour. It becomes immensely difficult to keep the form easy to use and ordered for the client as a result.

That's it, cheers!

daun commented 1 month ago

Agree this would be rather useful.

Could also be solved by hiding fields via visibility: hidden instead of removing them from the flow, possibly only if they don't occupy the whole width.