• Hi, I’m building a database website for a client and I was wondering if there was way to populate the (multiselect checkbox) Values field with ACF for easier management for the client?

    I imagine it’s possible via a plugin but I can’t for the life of me think how to do it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author xnau webdesign

    (@xnau)

    I don’t exactly know how that would work, since ACF works with WP post types, and Participants Database uses a separate database.

    What is it you want the client to be able to do?

    Thread Starter craigamcleod

    (@craigamcleod)

    Thank you for your swift reply.

    I’m trying to make the backend a little more aprochable for a non techincaly inclined client.

    Basicaly I want the client to have a sepereate database of values which would then populate the Values area of a particpant’s database’s field.

    • This reply was modified 9 years, 3 months ago by craigamcleod.
    Plugin Author xnau webdesign

    (@xnau)

    OK, the proper way to do this is to set up an action handler on the ‘pdb-form_element_build_{$type}’ action (the {$type} gets replaced by the name of the form element you want to alter…so probably ‘pdb-form_element_build_dropdown’), which passes in the field object.

    Your action handler will first check the field name to see if it is the one you want to alter. In the docs, it talks about filling in the output property of the field object, but you won’t do that, you’ll just be setting the options property to the array of values you’re getting from your ACF field.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Populating a Multi Select Values with ACF’ is closed to new replies.