I have an app built where the user can enter data into many fields.
What I want is when it is Monday, all fields are locked/not able to be edited, and a little note comes up on the top stating "Today is Monday, data is locked."
Solved! Go to Solution.
In the DisplayMode property for each field use the following
if(Weekday(Today()) = 1,DisplayMode.Disabled,DisplayMode.Enabled)
That will disable the control if its Monday. Use a similar formula in the Visible property of the error label to display it on Monday
if(Weekday(Today()) = 1,true, false)
In the DisplayMode property for each field use the following
if(Weekday(Today()) = 1,DisplayMode.Disabled,DisplayMode.Enabled)
That will disable the control if its Monday. Use a similar formula in the Visible property of the error label to display it on Monday
if(Weekday(Today()) = 1,true, false)
It is saying that my function IF has invalid arguments.
If(Weekday(Today()) = 1,DisplayMode.Disabled,DisplayMode.Enabled)
I just tested and the following is working for me in the DisplayMode property of a textbox.
If(Weekday(Today())=3,DisplayMode.Disabled, DisplayMode.Edit)
Its Tuesday and my calendar is set to start with Sunday. So Monday=2 Tuesday=3
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
User | Count |
---|---|
184 | |
51 | |
47 | |
32 | |
32 |
User | Count |
---|---|
265 | |
91 | |
78 | |
68 | |
67 |