Forum
Build select menu from events app
Hi,
I'm creating a form for people to register a guest list place for an event.
Part of the form has a select menu that I'd like the user to pick an event. How is it possible to list out the event title titles info a drop down menu?
The form is created is a HTML file in the "content" folder and I have included a just to see if an event title loops out but nothing happens.
I couldn't find anything in the solutions section on how you mix up the apps.
<perch:events><perch:events id="eventTitle" /></perch:events>
Thanks
Use
perch_events_custom()
on the page to output your comma delimited string that the select field needs for itsoptions
attribute.Then you can pass it into the template
and in your form template:
Thanks,
Looked through the custom content documents and having a bit of an issue returning just the titles in a comma delimited string.
My array filters out events in the future and I only want to return eventTitle. However, the code below returns everything in the var_dump
Something like: