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 / Condition syntax - Pow...
Power Apps
Answered

Condition syntax - PowerApps Custom form

(0) ShareShare
ReportReport
Posted on by 209

Hello,

 

I have a Choice column in a custom list where I am also creating a custom PowerApps form. I want to display the "Envelope Type" card (aka "Envelope Type_DataCard1") if "Envelopes" is one of the chosen items from the drop-down choice list (aka DataCardValue14) in my screenshots; OTHERWISE hide the card if Envelopes is not chosen at all. It works if I ONLY choose Envelopes, but if I choose other items, it is hiding the card. I searched online but not finding a straight forward answer... What would the syntax be for "Rule2" in my screenshot?

 

screenshot-001..jpg

 

screenshot-01..jpgscreenshot-02..jpg

 

 

Thank you in advance,
M

Categories:
  • Krishna92 Profile Picture
    Microsoft Employee on at

    @Morghan 

     

    Could you please try the expression 

    "envelope" in Datacardvalue14.selected.value

     

    Also please try updating the visibility property of the envelope card with above expression by enclosing it in a if condition and check if that helps.

     

    if("envelope" in Datacardvalue14.selected.value,true,false)

     

  • Verified answer
    v-xida-msft Profile Picture
    Microsoft Employee on at

    HI @Morghan ,

    Do you want to enable multiple options within the "What do you need?" field data card (DataCardValue14)?

     

    Based on the needs that you mentioned, I think it is not necessary to create a Rule to achieve your needs. Please consider take a try with the following workaround:

    Set the Visible property of the Envelope Type_DataCard1 in Edit form to following:

    If(
     "Envelopes" in DataCardValue14.SelectedItems.Value,
     true,
     false
    )

     

    If you still want to create a Rule to achieve your needs, please modify the formula within the Condition box of your Rule as below:

     "Envelopes" in DataCardValue14.SelectedItems.Value

     

    Please consider take a try with above solution, then check if the issue is solved.

     

    Best regards, 

  • Morghan Profile Picture
    209 on at

    Hi @v-xida-msft - that was exactly it. I was using "Selected.Value" instead of "SelectedItems.Value" - Thank you!

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 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard