solspace / craft-calendar

Calendar for Craft: The most reliable and powerful event management plugin for Craft.
http://docs.solspace.com/craft/calendar/v5
Other
15 stars 16 forks source link

Front End Submit - Multi Day #209

Closed NathanBate closed 1 year ago

NathanBate commented 1 year ago

Your docs here: https://docs.solspace.com/craft/calendar/v4/templating-extras/events-front-end.html#example-code-from-demo-templates

Don't give any information about making a multi-day submission work. They imply that a multi-day submission will work because it has a start date and an end date.

However, this will not work unless this hidden input is included. <input type="hidden" name="calendarEvent[multiDay]" value="1" />

This took me a while to figure out, and I think it is worth updating your docs.

Thanks for a great plugin.

kjmartens commented 1 year ago

Sorry for this @NathanBate,

We'll get the docs updated shortly. In the meantime, this is a better approach: 🙂

<input type="hidden"
       id="multiDay"
       name="calendarEvent[multiDay]"
       value="{{ event.isMultiDay }}"
       data-toggle-button
/>
laurabennett commented 11 months ago

This is definitely confusing. Would be nice if it worked the same as the All Day toggle.