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 / Display Mode not worki...
Power Apps
Answered

Display Mode not working properly

(0) ShareShare
ReportReport
Posted on by 675

Hi,

In the below pic(marked)

freshyshreya_0-1667289264267.png

1 is the data card value

2 is the DisplayMode value of 1

I want to put Display Mode of 1 in View mode for 5 specific values in DataCardValu31 and for the rest it should be in Edit Mode.The formula put in 2 is not working correctly.Please help me!

Categories:
  • MVP-Phipps Profile Picture
    3,526 Super User 2024 Season 1 on at

    Your If statement is wrong. I suggest you use a switch statement for this scenario.

     

    Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful because this can help others.

    LinkedIn: https://www.linkedin.com/in/charlie-phipps-%F0%9F%91%A8%E2%80%8D%F0%9F%92%BB-91338715b/
    YouTube: https://www.youtube.com/channel/UChmFBGU1YKIU91sNMQ7buGg
    Twitter: https://twitter.com/phipps0218

  • v-liwei-msft Profile Picture
    Microsoft Employee on at

    Hi @freshyshreya 

     

    Do you want the data card to be in editable mode when DataCardValue31.Text is not equal to countries such as the United States, Argentina and Colombia, otherwise it is not in editable mode?
    I suggest you modify your formula to be:

    If(DataCardValue31.Text<>"United States"&&DataCardValue31.Text<>"Qatar"&&DataCardValue31.Text<>"Argentina",DisplayMode.Edit,Disabled)

     

    Best Regards,

    Levi

  • Verified answer
    timl Profile Picture
    37,409 Super User 2026 Season 2 on at

    Hi @freshyshreya 

    You might want to consider the use of the in operator like so:

    If(DataCardValue31.Text in ["United States","Qatar","Argentina","Turkey"],
     DisplayMode.View,
     DisplayMode.Edit
    )

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard