Comments MEDIAMACHINE started the conversationAugust 31, 2020 at 2:46pmHi,I only have one calendar. How could I force a default calendar in the submission form?tx. 894Zhivko repliedAugust 31, 2020 at 5:30pmHi,What's your current calendar version? Stachethemes DeveloperMEDIAMACHINE repliedAugust 31, 2020 at 5:46pmVersion 3.1I've found I way by forcing it in /view/front/forms/default-submit-form.phpWith this : printf('<div class="stec-builder-element"><select class="stec-builder-element-content-select-style" required="" name="calendar_id"><option data-color="#d4452c" value="67">Calendar</option></select></div>', esc_html__('Select Calendar', 'stec'), $writable_calendars); 894Zhivko repliedSeptember 1, 2020 at 4:13pmOkay, great.You could remove the selector altogether and replace it with hidden input. <input type="hidden" name="calendar_id" value="67" />I'll make this default behaviour in the future update. Stachethemes Developer Sign in to reply ...
Hi,
I only have one calendar. How could I force a default calendar in the submission form?
tx.
Hi,
What's your current calendar version?
Stachethemes Developer
Version 3.1
I've found I way by forcing it in /view/front/forms/default-submit-form.php
With this :
Okay, great.
You could remove the selector altogether and replace it with hidden input.
I'll make this default behaviour in the future update.
Stachethemes Developer