New: Learn Statamic on Laracasts!

We've retired the forum in favor of GitHub Discussions.

New conversations can be started on GitHub. Existing conversations will remain for a while longer.

Head over to GitHub →

Conditionally show a field based on some field in another section

Richard Verbruggen December 19, 2018 by Richard Verbruggen

I'm aware I can show/hide fields in a fieldset within the 'visibility' part of the field. But I'm looking for a way to conditionally show fields based on a condition of a field on an other section of the fieldset.

So eg. On the Main-tab I have the toggle field has_extension_page; on another tab, lets say Hero image I want to conditionally show some other field.

Is there a way to show/hide some fileds on the Hero-tab based on the content of the fields on the Main-tab?

Answered by Marc!
>>>>>>> Answered <<<<<<<
3 Replies