Support

Account

Home Forums General Issues Option page to enable / disable visibility for an ACF field group?

Solving

Option page to enable / disable visibility for an ACF field group?

  • Hello.
    For instance. I pre-built a ton of ACF field groups. In order to keep everything look simple. I want to add control for the client to enable the group when only they decided to use it.

    I want to add a control to an options page to show/hide a ACF field Group named “Extra post option” which is assigned to the post post type only when the client needs it.

    I created an ACF Field Group. Enable the “Active” option from Group settings.

    Then I added a control on the options page. I will use a true/ false field type named “Enable extra post options?”.

    But how does that true/ false button control the visibility of that acf field group “Extra post option”?

    Or should I simply use admin CSS to show/ hide it…

    Thanks

  • How are the field groups loaded, from the DB or JSON files?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.