Dropdown Menu Dynamic Values

Home Forums Quform WordPress Dropdown Menu Dynamic Values

This topic is: resolved
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #17968
    rseigel
    Participant

    This may not be possible but I thought I’d take a shot.

    I need a particular drop-down in a form to be dynamic.

    The values need to come from post titles in a specific category.

    So….

    Category = Fruits

    Post titles = Banana, Apple and Orange

    Dropdown options = Banana, Apple and Orange

    If a post is removed from the category or a new one is added then the dropdown values should change along with it.

    Any hints on how this might be accomplished?

    Ron

    #17980
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #17985
    rseigel
    Participant

    Thanks Ally….that works perfectly.

    I’m going to press my luck and try for one more thing related to this…

    In a perfect world, as the user hovers over each choice in the dropdown, it would be wicked if the featured image from each post appeared. The image could appear at a given position relative to the dropdown (say 20px above and aligned with the left edge of the dropdown).

    I don’t know how else to describe this so I hope that explains it clearly enough.

    I usually like to try to figure things out myself but this one is way over my reach. 🙂

    Cheers,

    Ron

    #17989
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18098
    rseigel
    Participant

    Thanks very much for your help Ally.

    One more quick question…

    In the code above, what if I wanted to populate from multiple categories?

    I’ve already tried:

    cat' => 4, 5, 6, 7

    • This reply was modified 9 years, 7 months ago by rseigel.
    #18115
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    #18117
    rseigel
    Participant

    That works. Thanks very much.

    One more tiny adjustment…

    How would I sort the dropdown alphabetically?

    #18118
    Ally
    Support Staff

    You don't have permission to view this content. Please log in or register and then verify your purchases to gain access.

    • This reply was modified 9 years, 7 months ago by Ally.
Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.
Be inspired. © 2025 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy