Support

Account

Home Forums Pre-purchase Questions Generate fields (or field choices) based on another field

Solving

Generate fields (or field choices) based on another field

    • srmn

    • May 28, 2020 at 12:25 am

    Hello. I’d like to know if there’s a way in ACF or ACF PRO or if there-s an extension for this.

    Let’s say I have o Field Group with couple fields.
    One is a select and the user can select one or more choices.
    The other one is a checkbox group that should be populated with data selected by user in the first field.

    Could you do that with ACF?

    This could be a good solution also:
    I have a Field Group with:
    – one field that is a select and the user can select one or more choices.
    – for each choice selected by user is generated a new field. (True/False field, or checkbox field, or radio field)

  • The easiest way is to use conditional logic and your second example. Each true/false field being conditional on the sections made.

    If you want to show check boxes based on selections made then you would need to do this by adding custom JavaScript to ACF. Detect when the select field is changed and hide or show check boxes based on the selections made. Sorry, I don’t have code for this.

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

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.