# Popup Calendar set Null date

**URL:** <https://forum.inductiveautomation.com/t/popup-calendar-set-null-date/72446>\
**Category:** Ignition\
**Tags:** vision, ignition81\
**Created:** [April 14, 2023, 5:40am UTC](https://forum.inductiveautomation.com/t/popup-calendar-set-null-date/72446 "2023-04-14T05:40:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Priyanka.Khandge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/priyanka.khandge/32/35989_2.png) [@Priyanka.Khandge](https://forum.inductiveautomation.com/u/Priyanka.Khandge)\
**Post date:** [April 14, 2023, 5:40am UTC](https://forum.inductiveautomation.com/t/popup-calendar-set-null-date/72446/1 "2023-04-14T05:40:45Z")

</div>

Hi Guys,

I had tried to set a null date to the popup calendar when the dropdown selected value - 1. Can you suggest how to fix this?

Ignition Vision 8.1.17

Thank you,  
Priyanka

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [April 15, 2023, 2:06am UTC](https://forum.inductiveautomation.com/t/popup-calendar-set-null-date/72446/2 "2023-04-15T02:06:05Z")

</div>

You could script it from the dropdown's propertyChange event handler:

```auto
if event.propertyName == 'selectedIndex' and event.newValue == -1:
	event.source.parent.getComponent('Popup Calendar').date = None

```

---

<div class="post-metadata">

**Author:** ![Priyanka.Khandge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/priyanka.khandge/32/35989_2.png) [@Priyanka.Khandge](https://forum.inductiveautomation.com/u/Priyanka.Khandge)\
**Post date:** [April 17, 2023, 5:08am UTC](https://forum.inductiveautomation.com/t/popup-calendar-set-null-date/72446/3 "2023-04-17T05:08:19Z")

</div>

Thank you so much @justinedwards.jle

Worked Perfectly!!
