statamic / ideas

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

Hide hidden conditional fields from field previews #1023

Closed patrickhoehn closed 3 months ago

patrickhoehn commented 11 months ago

It would be great for the usability if hidden conditional fields were hidden in the field preview:

fieldpreview
duncanmcclean commented 11 months ago

You can hide individual fields by setting replicator_preview: false on the field in your blueprint file.

patrickhoehn commented 11 months ago

Great! Thank you very much!

duncanmcclean commented 3 months ago

I don't know that all developers would want conditional fields to be hidden. I know of a few cases where developers use conditions on toggle fields which they use to hide fields for editors, while retaining the data on the entry.

Closing in favour of you being able to hide these yourself if you wish with the replicator_preview setting.