# Calendar component disable holidays

**URL:** <https://forum.inductiveautomation.com/t/calendar-component-disable-holidays/73886>\
**Category:** Ignition\
**Tags:** perspective, vision\
**Created:** [May 18, 2023, 10:36am UTC](https://forum.inductiveautomation.com/t/calendar-component-disable-holidays/73886 "2023-05-18T10:36:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dilan](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@Dilan](https://forum.inductiveautomation.com/u/Dilan)\
**Post date:** [May 18, 2023, 10:36am UTC](https://forum.inductiveautomation.com/t/calendar-component-disable-holidays/73886/1 "2023-05-18T10:36:40Z")

</div>

Hello All,

For certain parts of our systems we allow the users to enter manual data. Recently there has been a request to not allow a sure to enter data for a public holiday.  
While I can achieve this via data validation script, it would be neater to have the calendar component look at a db listing holidays and then not allow selection of those days. Has anyone done something like this?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [May 18, 2023, 10:59am UTC](https://forum.inductiveautomation.com/t/calendar-component-disable-holidays/73886/2 "2023-05-18T10:59:38Z")

</div>

Please tag your question as _Vision_ or _Perspective_. The answer will be different in each case.

---

<div class="post-metadata">

**Author:** ![Dilan](https://avatars.discourse-cdn.com/v4/letter/d/ba8739/32.png) [@Dilan](https://forum.inductiveautomation.com/u/Dilan)\
**Post date:** [May 30, 2023, 2:58pm UTC](https://forum.inductiveautomation.com/t/calendar-component-disable-holidays/73886/3 "2023-05-30T14:58:45Z")

</div>

Hi, thank you for the comment, I would like to do it in both, currently we migrating projects towards perspective, but still have vision windows as well.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [May 30, 2023, 3:30pm UTC](https://forum.inductiveautomation.com/t/calendar-component-disable-holidays/73886/4 "2023-05-30T15:30:45Z")

</div>

Perspective does not allow for disabling individual days of a Calendar component. You can somewhat achieve this with CSS styling, but it breaks down as soon as you change the year in use by the picker, and you would need to update the CSS rules every year. 😬
