261
Views
4
Comments
Solved
How to Reset the value in date input field with DatePicker?
Question
Application Type
Reactive

I am trying to reset the value of the date picker input field to the current date but it didn't work. However, I have tried several solutions suggested in forums but haven't had any luck. 

My requirement is straightforward. I have a date picker input field, and when a user clicks the reset button, the selected date on the input field should display the current date.


I attached the OML file herewith. 

DatePicker.oml
2023-10-30 09-31-27
Shivam Mishra
Solution

Hi,

SWAMYDURAI SARAVANAN

Due to your requirement i build all the things . please check in this module


thanks 

shivam mishra

DatePickernew.oml
2018-10-29 08-31-03
João Marques
 
MVP

Hi,



To change a date, you should use the DatePickerUpdateDate action from OutSystems UI:



To clear a date, you should use the DatePickerClear action from OutSystemsUI

Kind Regards,
João

UserImage.jpg
SWAMYDURAI SARAVANAN

Thanks for your reply. Earlier I tried this method But no luck. Now I understood why It didn't work, The DatePickerWidgetId was wrong. However I solved the issue now.

2023-01-23 06-50-19
Hiral Mistry

Hi,

Please set initial Date value as CurrDate()

and on reset button action


2023-10-30 09-31-27
Shivam Mishra
Solution

Hi,

SWAMYDURAI SARAVANAN

Due to your requirement i build all the things . please check in this module


thanks 

shivam mishra

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