WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Is it possible to have a form where you can select an event from a drop down? (9 posts)

  1. Troy Templeman
    Member
    Posted 6 months ago #

    Instead of booking an event from each individual event page, is it possible to have a separate post or page with a form on it where the user can select from a list of available events to book?

    http://wordpress.org/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 6 months ago #

    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.

  3. Troy Templeman
    Member
    Posted 6 months ago #

    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.

  4. caimin_nwl
    NetWebLogic Support
    Posted 6 months ago #

    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.

  5. Troy Templeman
    Member
    Posted 6 months ago #

    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.

  6. caimin_nwl
    NetWebLogic Support
    Posted 6 months ago #

    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>
  7. Troy Templeman
    Member
    Posted 6 months ago #

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

  8. caimin_nwl
    NetWebLogic Support
    Posted 6 months ago #

    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/

  9. Troy Templeman
    Member
    Posted 6 months ago #

    OK, Thanks for your help.

Reply

You must log in to post.

About this Plugin

About this Topic