Support

Account

Home Forums Add-ons Options Page Populate dropdown menu from Options page

Solving

Populate dropdown menu from Options page

  • I am trying to set up an options page where additional towns can be added as and when we need them so that we can populate dropdown fields on certain forms without having to recreate these dropdowns individually in each Custom Field Group.

    Is it possible to do this? In other words, only having to update the Options page in one place that will auotpopulate dropdown fields?

    Thank you

  • @Hube2 thanks for the feedback. My apologies, I should have been a little more clear.

    Is it possible to do this in the backend of ACFs? Essentially what we’re trying to build is a lookup field for multiple parts of the backed of WordPress when a user logs in. So what we have is this…

    – User is created as a Dealer.
    – Dealer’s town is selected from dropdown menu created from Options Page.
    – Dealer is saved as new user.
    – Dealer then has ability to load new secondhand products.
    – Product is loaded and is able to select a dropdown of where that secondhand product is being sold .i.e. a different town populated from the Options Page.

    When building out the Dealers Field Group, one of the fields is a dropdown menu. The value of these dropdown menus should not be set in the settings of the Field Group I am setting up but rather draw its values from the Options Page.

    We will be doing this again in the SecondHand Field Group where that dropdown’s values need to be pulled from the Options page so that we do not have to duplicate this and it is only ever managed from one point, the Options Page.

    Hope this makes sense?

    Thank you.

  • I’ve managed to do a little further reading and found this (http://www.advancedcustomfields.com/resources/querying-relationship-fields/) which is close to what we need but it would be nice to rather manage this from the Option page instead of having a new Custom Post Type just for towns because there will be additional information elements we want to share across sections of the backend, not just towns.

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

The topic ‘Populate dropdown menu from Options page’ is closed to new replies.