# Calendar

### When should you use this?&#x20;

* Collecting a date from the visitor
* Booking appointments&#x20;

### How do I set it up?&#x20;

{% embed url="<https://www.loom.com/share/439306e3b3534f4c97bfb28f5ff60511?sid=4ab59bb6-5225-4d4b-8f7b-fc6d9896ffe5>" %}
Setting up 'Calendar' action block
{% endembed %}

To set up the 'Calendar' action block, you can follow the following steps;&#x20;

* Add action block on canvas by clicking on '+' <br>
* Choose 'Calendar' <br>
* Configure following on right panel<br>
  * **Date Selection:** \
    \
    Configure the following under 'Date Selection' in the configuration message;<br>
    1. **Show Message:** \
       \
       You can set the message that you would like to send to the visitors along with calendar to book the appointment<br>
    2. **Define Variable:** \
       \
       Define variable in which the response of the visitors will be stored <br>
    3. **Date Selection:** \
       \
       Select nature of date selection from available options . You can enable 'Show Past Dates' to show the visitors past dates<br>
  * **Exclude Dates:** \
    \
    Select the 'Exclude Dates' tab and define any exclusion of dates that you don't want to be visible in the calendar UI. You can exclude dates by either; <br>
    * Selecting the days all together like Saturdays, Sundays etc.. This way all of these will not be selectable to the visitor. <br>
    * Selecting special dates like Christmas, Diwali, EID etc..&#x20;
