WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Is it possible to have a form where you can select an event from a drop down?

[Resolved] Is it possible to have a form where you can select an event from a drop down?

Viewing 8 replies - 1 through 8 (of 8 total)
  • caimin_nwl
    NetWebLogic Support

    @caimin_nwl

    That could be done but not without some custom coding. If you can let us know a little more about how you’d want it to work, we can probably point you in the right direction.

    Troy Templeman
    Member

    @troytempleman

    Basically it would be the same as a booking form on an event page but since it wouldnt be on an individual event page, there would be a drop down select menu with all events. The user would choose from the menu which event he/she wants to book and continue with the booking as usual. I have gravity forms also if needed.

    caimin_nwl
    NetWebLogic Support

    @caimin_nwl

    One way to do it would be create an events list displayed within a dropdown. Something like this:

    <select>
    [events_list]
    <option value="#_EVENTLINK">#_EVENTNAME</option>
    </select>
    [/events_list]

    You need to add some Javascript that sends users to the #_EVENTLINK after it’s selected.

    Troy Templeman
    Member

    @troytempleman

    That helps build the list but I don’t want the user to be sent to the event page after selecting the event (that’s an extra step). I want them to be able to book that event on that same page after they select it from the drop down.

    caimin_nwl
    NetWebLogic Support

    @caimin_nwl

    Then you’d need to use something like jQuery to inject the event information and booking form into the page using AJAX.

    Bear in mind that Events Manager uses jQuery and AJAX as part of the booking process – it’s possible that AJAX within AJAX could cause problems.

    BTW, my code from above is a bit off. Should be like this:

    <select>
    [events_list]
    <option value="#_EVENTLINK">#_EVENTNAME</option>
    [/events_list]
    </select>
    Troy Templeman
    Member

    @troytempleman

    OK. Do you know how to go about doing that exactly? Thanks!

    caimin_nwl
    NetWebLogic Support

    @caimin_nwl

    Unfortunately, that’s a little beyond what we official support people can provide.

    That said, you might want to take a look at this tutorial on using AJAX in WordPress:
    http://wp.smashingmagazine.com/2011/10/18/how-to-use-ajax-in-wordpress/

    Troy Templeman
    Member

    @troytempleman

    OK, Thanks for your help.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Resolved] Is it possible to have a form where you can select an event from a drop down?’ is closed to new replies.