Skip Navigation

[Resolved] Building an event submission form for The Events Calendar

This support ticket is created 3 years, 9 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 - - 9:00 – 13:00
14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 - - 14:00 – 18:00

Supporter timezone: Africa/Casablanca (GMT+01:00)

This topic contains 2 replies, has 2 voices.

Last updated by johnG-13 3 years, 9 months ago.

Assisted by: Jamal.

Author
Posts
#1958873

I want to create a publicly-accessible form for The Events Calendar -- similar to their Community Events addon.

I see I can create a form for "Events" posts, but I don't know what fields to put in there that will match the fields in The Events Calendar. Can you help point me in the right direction?

#1960059

Hello and thank you for contacting the Toolset support.

I am not very familiar with how the Events calendar stores the fields for an event. I'll suggest that you create an event manually, then explore the database to see how each field is stored.
For example, Toolset stores date fields as timestamp numbers, maybe The Events Calendar stores dates as strings.

Then you can use a Toolset Form and add a generic field for each of the desired fields. The fields won't be saved upon submission, you need to add custom code to save them. You can use the tribe_update_event function from the plugin to save the fields.
hidden link

You can check the names of the fields in the documentation of the tribe_create_event function. For example "EventStartDate" and "EventEndDate".
hidden link

The custom code that you will use can be hooked to cred_save_data or cred_submit_complete from Toolset.
https://toolset.com/documentation/programmer-reference/cred-api/

I have also found the list of fields for an event on this article hidden link

#1967359

My issue is resolved now. Thank you!