Hello,
I currently have a disabled date picker that need to be enabled once a user moves a toggle. When the Completed_Toggle field is moved to yes, I would like the Date Request Completed_Input date picker field to return to edit mode. Does anyone have a solution for this? Thank you.
Solved! Go to Solution.
If your toggle is named "Completed_Toggle" then the formula would look like this:
If(Completed_Toggle.Value, DisplayMode.Edit, DisplayMode.Disabled)
Unless I have a typo I think you can copy/paste the formula above into the DisplayMode property formula bar.
In the DisplayMode property of the Date picker you can a formula like this?
If(Toggle1.Value, DisplayMode.Edit, Disabled)
Jeff, I tried that, but I am still getting an invalid argument type message.
Can you share the a screen shot of the formula with the error?
Jeff,
Below is a screenshot of the error. The red "X" indicated invalid argument type.
It looks like toggle1 may not be the name of the toggle control. Also since the toggle returns true or false you don't need the "= true". Now this part won't cause an error, so take a look at the toggle and use that control name.
The name of the toggle is Completed_Toggle, and the TrueText of the toggle is "Yes". I also tried this formula, but it didn't work either:
If your toggle is named "Completed_Toggle" then the formula would look like this:
If(Completed_Toggle.Value, DisplayMode.Edit, DisplayMode.Disabled)
Unless I have a typo I think you can copy/paste the formula above into the DisplayMode property formula bar.
This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
User | Count |
---|---|
204 | |
70 | |
51 | |
49 | |
20 |
User | Count |
---|---|
262 | |
120 | |
85 | |
80 | |
68 |