Support

Account

Home Forums General Issues Is there a way to dynamically fill checkbox toggles?

Solved

Is there a way to dynamically fill checkbox toggles?

  • I’m trying to build a field type that will display all of the custom post types that i have in wordpress, right now i have about 5, but these could change in the future or we could add more. I’d like to list these out as checkboxes (because checkboxes are toggles and i can apply the toggle logic to them).

    Is there a way to inject all of the registered custom post types dynamically into a field that uses checkboxes so i can display a set of field depending on what field is selected?

    I’m thinking i would also like to send the value selected from the checkbox to the post_object field to filter the results shown in that field type.

  • I found this article:
    http://www.advancedcustomfields.com/resources/dynamically-populate-a-select-fields-choices/

    I’ll give this a whirl, I think a select drop down menu would work just as well. Thanks.

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

The topic ‘Is there a way to dynamically fill checkbox toggles?’ is closed to new replies.