Okay
  Public Ticket #2523884
​ Default calendar for submission ​form
Closed

Comments

  • MEDIAMACHINE started the conversation

    Hi,

    I only have one calendar. How could I force a default calendar in the submission form?

    tx.

  •  783
    Zhivko replied

    Hi,

    What's your current calendar version?


    Stachethemes Developer

  • MEDIAMACHINE replied

    Version 3.1

    I've found I way by forcing it in /view/front/forms/default-submit-form.php

    With 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);
  •  783
    Zhivko replied

    Okay, 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