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?
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
My issue is resolved now. Thank you!