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 / A field appears only i...
Power Apps
Answered

A field appears only if three other fields are set to specific values

(0) ShareShare
ReportReport
Posted on by 10

I have a PowerApps form that pulls fields from a SharePoint list. I would like for the Major Incident question (highlighted in my screenshot) to ONLY appear if the following fields are set to these specific values:

  • Type of Request = KBA Request
  • What type of KBA request are you submitting = New KBA 
    • or if this same field = Update KBA
  • Is this a standard or emergency request = Emergency

This is the formula that I thought would work in the Visibility Property field for the MI question, but it's not working. 

If(DataCardValue61.Selected.Value="KBA Request"||DataCardValue104.Selected.Value="New KBA"||DataCardValue104.Selected.Value="Update KBA"||DataCardValue62.Selected.Value="Emergency", true, false)

 

TIA for the help!

Snag_241b1416.png
Snag_241b0a14.png
Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @Colsen 

    DataCardValue61.Selected.Value="KBA Request"||
    DataCardValue104.Selected.Value="New KBA"||
    DataCardValue104.Selected.Value="Update KBA"||
    DataCardValue62.Selected.Value="Emergency"

    Lose the If(), the above reduces to either true or false. 

  • jriemsma Profile Picture
    11 on at

    A double pipe || is an OR.  You need a couple of && AND statements right?

    If(DataCardValue61.Selected.Value="KBA Request" && DataCardValue104.Selected.Value="New KBA"||DataCardValue104.Selected.Value="Update KBA" && DataCardValue62.Selected.Value="Emergency", true, false)

  • Colsen Profile Picture
    10 on at

    Your formula is close, but it's not fully working.

     

    I copied and pasted your formula in the visible property field and it works perfectly when I select Update KBA, but when I select 'New KBA' that MI field appears when the standard/emerg. request field is blank and when I select standard. (see photo attached)  

    Colsen_0-1649359193415.png

     

     

    I thought maybe changing the order may work so I tried the below formula and the reverse happened. When I select New KBA everything worked perfectly and Update KBA became the issue. 

    If(DataCardValue61.Selected.Value="KBA Request" && DataCardValue62.Selected.Value="Emergency" && DataCardValue104.Selected.Value="New KBA"||DataCardValue104.Selected.Value="Update KBA", true, false)

     

    Colsen_1-1649359203750.png

     

     

     

  • Colsen Profile Picture
    10 on at

    Thank you for the reply, but unfortunately, this didn't work. 

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Colsen 

    Please consider changing your Formula to the following:

    DataCardValue61.Selected.Value="KBA Request" &&
    DataCardValue104.Selected.Value in "New KBA|Update KBA" &&
    DataCardValue62.Selected.Value="Emergency"

     

    @Drrickryp had the point that you don't need all the redundant If...true...false syntax.  The above formula will result in either true or false.  There is no point to see if something is true and then return true...it already is true!

     

    I hope this is helpful for you.

  • Colsen Profile Picture
    10 on at

    @RandyHayes - Thank you very much. Your formula worked. 

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard