Announcements
I have a date picker and two buttons, whenever date is changing, I want to disable one button and visible one button only.
How can I do that. I tried but not able to achieve this.
hey @zeyaul-hoda
you can try this on the visible property of your button 1
If(DatePicker1.SelectedDate <> DatePicker1.DefaultDate, DisplayMode.Disabled, DisplayMode.Edit)
please be aware that you need to rename to your needs
Let me know if my answer helped solving your issue.If it did please accept as solution and give it a thumbs up so we can help others in the community.Greetings
Hi @zeyaul-hoda,
I think you should refer to the OnChange property of your DatePicker.
Set a variable for OnChange property of the DatePicker as below:
Set(varVisible,true)
Set the first button DisplayMode property as below:
If(varVisible,DisplayMode.Disabled)
Set the second button Visible property as below:
varVisible
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 337 Super User 2026 Season 2
M Bilal Khan 250
Mohsin Ali 225