cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
IC
Helper I
Helper I

Rule setting in PowerApps

Hello,  In PowerApps I'm trying to do a simple rules on my DataCards.  Let say I have 2 datacards;  DataCard1(RequestStatus) - dropdown list [Pending,Approved,Rejected] and DataCard2(Remarks) - textbox.  I want to use the Rules option in PowerApps when DataCard1(RequestStatus) is equal to approved, then DataCard2(Remarks) the properties display mode will set to disabled.

 

Thanks,

Ian

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

To disable the remarks card when the request status is approved, I would simply set the display mode of your remarks card to the following formula:

 

If(DataCardValue1.Selected.Value = "Approved", DisplayMode.Disabled, DisplayMode.Edit)

 

Here's a screenshot that illustrates this concept, based on the post that I've just answered here.

https://powerusers.microsoft.com/t5/General-Discussion/Need-help-showing-hiding-a-text-box-based-on-...

 

SPChoiceList2.PNG

 

 

If you do want to create a rule, you would set the condition to DataCardValue1.Selected.Value  = "Approved", and then play out the action of setting of the display mode to disabled.

View solution in original post

1 REPLY 1
timl
Super User
Super User

To disable the remarks card when the request status is approved, I would simply set the display mode of your remarks card to the following formula:

 

If(DataCardValue1.Selected.Value = "Approved", DisplayMode.Disabled, DisplayMode.Edit)

 

Here's a screenshot that illustrates this concept, based on the post that I've just answered here.

https://powerusers.microsoft.com/t5/General-Discussion/Need-help-showing-hiding-a-text-box-based-on-...

 

SPChoiceList2.PNG

 

 

If you do want to create a rule, you would set the condition to DataCardValue1.Selected.Value  = "Approved", and then play out the action of setting of the display mode to disabled.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,393)