Revealer

A button that allows you to reveal conditional fields.


Preview

Revealer Fieldtype

This fieldtype is intended to be used with conditional field rules. If you have some fields that should only sometimes show, throw a Revealer field in there and those fields may be shown once the button is clicked.

The example image above uses the following fieldset:

fields:
  content:
    type: markdown
  has_extended_content:
    type: revealer
    display: Show extended content fields
  extended_content:
    type: markdown
    show_when:
      has_extended_content: true
  bibliography:
    type: markdown
    show_when:
      has_extended_content: true

Regardless of whether the button was clicked or not, no data will be saved.


Settings

This fieldtype supports the following settings in addition to the defaults.

display

string

This is the button text.

instructions

string

Instructional text that will appear as a tooltip on the button.

Last modified on October 18, 2017