Search code examples
apostrophe-cms

Conditional fields: Hide/show fields based on the value of other fields


Does Apostrophe 2 have conditional fields? I only found this issue at apostrophecms-legacy but no documentation for that.


Solution

  • The select field type has an option called showFields, which you can use to conditionally show other fields based on the value of the select.

    See https://apostrophecms.org/docs/tutorials/getting-started/schema-guide.html#code-select-code