Announcements
Hi,
In the below pic(marked)
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!
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
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
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 236 Super User 2026 Season 2
WarrenBelz 207 Most Valuable Professional
Mohsin Ali 169