• Resolved JamesDunn

    (@jamesdunn)


    I was curious if you, or anyone, has used Gravity Forms to submit information to your Event Organizer plugin using the Custom Fields capability of Gravity Forms?

    I’m working with a local non-profit radio station and they have a community calendar on their website. I’ve been using Gravity Forms for people to submit items to be considered for the community calendar, and if it’s approved for air, then someone has to actually enter it into the Events Organizer. If I could have the information entered into Gravity Forms automatically populate a draft Event, then all the person responsible for the calendar would have to do is approve the event and Publish it.

    Thanks in advance for any help and advice.

    https://www.ads-software.com/plugins/event-organiser/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    Hi James,

    I know of at least on person who has used Gravity Forms for front-end event submission (though I don’t have example code). Gravity forms lets you execute arbitrary code after a form has been submitted via its provided hooks. I advise against trying to populate the various meta keys that an event requires, but instead hooking into a form submission and using the submitted data (which is passed to the callback) to use Event Organiser’s API to create an event.

    Specifically this function: eo_insert_event() (see codex).

    I’ll mention here that the details in that codex are a bit out of date – although the example still works – you can now pass just the one array to eo_insert_event() rather than splitting it into.

    Due to backwards compatibility, both will work, but passing one array rather than two is just nicer code aesthetics :).

    Thread Starter JamesDunn

    (@jamesdunn)

    Thanks so much Stephen. I needed a direction and you gave it to me. I appreciate the quick response and hopefully this puts me in a position to quickly complete this project since it’s an unpaid project for a non-profit.

    Have a great week.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Gravity Forms with Event Organizer’ is closed to new replies.