web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / DisplayMode Formula Help
Power Apps
Answered

DisplayMode Formula Help

(2) ShareShare
ReportReport
Posted on by

I am trying to make DatacardValue22 Disabled when two conditions happen. 

 

1. When Datacardvalue8 is <10,000,000 and Datacardvalue10 equals Commercial or International

 

OR

 

2.

When Datacardvalue8 is <100,000,000 and Datacardvalue10 equals US Government

 

Here is the Code I am using in the DisplayMode or DatacardValue22: 

If(Value(DataCardValue8.Text)<10000000 And Value(DataCardValue10.Selected.Value = "Commercial" || "International" Or Value(DataCardValue8.Text)<100000000 And Value(DataCardValue10.Selected.Value = "US Government")),DisplayMode.Disabled)

 

Any suggestions? It is working for the first condition just not the 2nd one. 

 

Categories:
I have the same question (0)
  • Verified answer
    ANB Profile Picture
    7,252 Super User 2026 Season 1 on at

    HI @Brook0131 Try this:

     

    If( Or( 
     And( 
     Value(DataCardValue8.Text)<10000000 ,
     DataCardValue10.Selected.Value in ["Commercial", "International"]
     ),
     And( 
     Value(DataCardValue8.Text)<10000000 ,
     DataCardValue10.Selected.Value = "US Government"
     )
    ), 
    DisplayMode.Disabled
    )
     

     

    -----------------------------------------------------------------------------------------------------------------------------

    I hope this helps.

    Please click Accept as solution ✅ if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs up.👍

    Thanks,
    ANB


  • ivan_apps Profile Picture
    2,189 Moderator on at

    If(

    Value(DataCardValue8.Text)<10000000 

    && ( DataCardValue10.Selected.Value = "Commercial" 

    || DataCardValue10.Selected.Value = "International" 

    || DataCardValue10.Selected.Value = "US Government"),

    DisplayMode.Disabled

    )

     

    In either case you are checking for Value < 10000000 so that's a constant check, you only have to add it once. 

    You also don't have to wrap text comparisons in a Value(), that will try to turn it into a number.

  • timl Profile Picture
    36,785 Super User 2026 Season 1 on at

    Hi @Brook0131 

    I would try adding extra brackets around the first condition like so:

    If(
     (
     Value(DataCardValue8.Text) < 10000000 And 
     (
     Value(DataCardValue10.Selected.Value) = "Commercial" || 
     Value(DataCardValue10.Selected.Value) = "International"
     ) 
     )
     Or 
     (
     Value(DataCardValue8.Text) < 100000000 And 
     Value(DataCardValue10.Selected.Value) = "US Government"
     ),
     DisplayMode.Disabled
    )
    

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.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 541

#2
WarrenBelz Profile Picture

WarrenBelz 434 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 289

Last 30 days Overall leaderboard