Okay
  Public Ticket #3006169
Calendar selection
Closed

Comments

  •  5
    joshivince started the conversation

    Dear all,
    is it possible to hide the form field "Please choose calendar" if I have only one calendar set up? I try to keep the "submitting" form as clean as possible. Also the question if I can delete some form fields in the "Add New Location" form. Also there I want to keep the form clean.

    Thanks, Vincent

  •  894
    Zhivko replied

    By default if you have only one calendar the calendar selector should not show up. Is that the case or it sill shows up?


    Stachethemes Developer

  •  5
    joshivince replied

    It is not shown up automatically. I configure my Builder with Elementor. And if I try to add an event (only one calender is set up), it shows the error message I attached here.

    How can I get rid of that error?

    You can reach my calendar here: https://www.feschtkalender.info (it's normally not live yet but for your convenience I let it online for now). It's not a big deal, if I have to implement the calendar-selector and set it within Elemtor as "default" calendar. But if it is possible to hide it out it would be better.

    Thanks in advance,
    Vincent

    For the second question I found the solution by me myself:

    [name~=location_type] {
      display: none;
    }

  •  894
    Zhivko replied

    I think the builder does not hide the field automatically.

    Here's workaround like you've suggested:

    1) Open your submit form from the builder.

    2) Insert "Calendar" element from the builder.

    3) Open the element settings and select "Default Calendar". Screenshot attached.

    4) Add this css (STEC -> Fonts & Colors -> Custom style tab)  to hide the element... 

    .stec-event-submission-form select[name='calendar_id'] { display: none !important; }

    This way the field will be auto-populated and won't be displayed for the user. 

    The alternative is to write your own stec-submit-form.php file in your theme/child-theme folder and use input type hidden for the calendar id. I'm attaching you a basic submit form with most fields removed. If this file exists in your theme folder the calendar will read it instead of the default submit form.


    Stachethemes Developer

  •  5
    joshivince replied

    It works like a charm. Thanks for this great support!

    This ticket can be closed.

    Regards,

    Vincent