46
Views
5
Comments
Solved
[OutSystems UI] How to Reset Date Picker Value in ODC?
Question
outsystems-ui
Reactive icon
Forge asset by OutSystems

Hi everyone,

I'm currently working in OutSystems ODC and facing an issue with resetting the value of a Date Picker widget. I want to clear , but I’m not able to achieve this successfully.

I've tried a few approaches, but none seem to reset to blank.

Has anyone encountered this issue before? 

Thanks in advance!

Z_Test_Dinesh.oml
UserImage.jpg
Chiranjeevi Balaji
Solution

Hi @Dinesh Murugan 

You can reset the datepicker value using the built-in Datepicker clear action available in ODC Studio. 

Thanks,

Chiranjeevi

2025-03-12 07-08-15
Nilesh Trivedi

Hi @Dinesh Murugan 

Can you please try this one? Maybe it's work for you.

  1. Create a local variable (e.g., SelectedDate) of Date type
  2. Bind it to your Date Picker widget's Value property
  3. Reset it with an action:
    1. In your screen action or button click
      1. $variables.SelectedDate = null; (Resets to empty/placeholder) 
      2. $variables.SelectedDate = new Date(); (Resets to current date)
UserImage.jpg
Chiranjeevi Balaji
Solution

Hi @Dinesh Murugan 

You can reset the datepicker value using the built-in Datepicker clear action available in ODC Studio. 

Thanks,

Chiranjeevi

2026-01-23 11-38-55
Dinesh Murugan
Champion

Thank you for all your response @Chiranjeevi Balaji  , @Aditi Saraswat  , @Nilesh Trivedi  and @Dhanasingh Dennison 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.