Home › Forums › Quform WordPress › Dropdown Menu Dynamic Values
- This topic has 7 replies, 2 voices, and was last updated 9 years, 7 months ago by
Ally.
- AuthorPosts
- January 17, 2016 at 3:00 pm #17968
rseigel
ParticipantThis 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
January 18, 2016 at 9:50 pm #17980Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
January 18, 2016 at 10:36 pm #17985rseigel
ParticipantThanks 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
January 20, 2016 at 12:36 pm #17989Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 3, 2016 at 7:12 pm #18098rseigel
ParticipantThanks 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.
February 5, 2016 at 2:11 pm #18115Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 5, 2016 at 2:22 pm #18117rseigel
ParticipantThat works. Thanks very much.
One more tiny adjustment…
How would I sort the dropdown alphabetically?
February 5, 2016 at 2:56 pm #18118Ally
Support StaffYou 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.
- This reply was modified 9 years, 7 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.