web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Reset Calendar Component
Power Apps
Unanswered

Reset Calendar Component

(0) ShareShare
ReportReport
Posted on by 6

Hi,

I'm new to Power FX language, although familiar with Excel formula language and VBA. I'm currently developing a holiday app for my company. I have an issue with the calendar component in that I can't get it to reset. I have a "clear" button on the screen that I would like to reset the users selected date range to today's date using it's OnSelect event. I know the calendar component has a OnReset event which I'm using the following code...

 

 

Reset(galCalendar)

 

 

and this code in the OnSelect of the "clear" button...

 

 

Reset(Calendar_1)

 

 

 However this isn't working. I'm not sure where I'm going wrong or even if I have the correct logic?

 

Any help would be greatly appreciated.

 

Thank you 😊

Categories:
  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    OnReset, implies an action that happens when the control resets, not a reset property.

     

    By calendar component, are you referring to the datepicker or something else?

  • coombech Profile Picture
    6 on at

    This is the calendar component I'm using. SelectRange is true. When the user selects a date range, I want the "clear" button to reset to todays date...

    coombech_0-1634741350103.png

    Thanks for your help so far.

  • JR-BejeweledOne Profile Picture
    5,836 Moderator on at

    I see, you must be trying to modify a model driven app.    I don't have the answer you are looking for unfortunately as I am not familiar with that component.

  • coombech Profile Picture
    6 on at

    No problem. Thanks for your help anyway.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 204 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard