Hi,
I assume we are talking about the "the event calendar" plugin, download from:
https://wordpress.org/plugins/the-events-calendar/
You can use Toolset form to create event posts(post type slug is "tribe_events"), but there will be some unexpected problems, for example:
"the event calendar" plugin stores Start/End value in string format, you can check it in your database table "wp_postmeta", meta_key are these:
- _EventStartDate
- _EventEndDate
Values are similar like these:
2018-11-21 00:00:00
2018-11-21 23:59:59
But in Toolset side, custom date field created with Types plugin stores value in timestamp value, like this:
1542780448
As you can see, they are not compatible, but there is a workaround, for example:
1) you can create two date fields (start-date and end-date) with Types plugin, register them to post type "event",
2) Create a Toolset form for creating new "event" post, with above date fields (start-date and end-date)
3) After user submit the form, use action hook cred_save_data to trigger a custom PHP function,
https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data
4) in this PHP function, get the values from date fields (start-date and end-date) , and turn it into string format, then save them into "the event calendar" plugin date fields:
- _EventStartDate
- _EventEndDate
More help:
https://codex.wordpress.org/Function_Reference/get_post_meta
https://developer.wordpress.org/reference/functions/update_post_meta/
hidden link
For your reference.