Hello. I have a button that is configured as OnSelect to set a variable varStartTime to be the current date/time. I am trying to get the button to be disabled once this variable has populated with the date/time to avoid having the user select a new date/time. My button code is this:
Set(varStartTime, Now()); If(IsBlank(varStartTime), StartButton.Visible=true, StartButton.Visible=false),
However, it does not disable the button. Any suggestions on how to configure the button to do 2 functions for one click?
Solved! Go to Solution.
What @anshulbatheja said if you want to disable the control.
If you want to make the control invisible, you could put the following:
If there is no value in start time it will be visible. If there is a value it will disappear.
Personally I'd go with the disabled option but thought I'd mention
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.