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 / IF statements to make ...
Power Apps
Answered

IF statements to make a data card visual from a number of different columns

(0) ShareShare
ReportReport
Posted on by 16

 

Hi, So I am trying to make a data card only become visible IF the fields in 4 other data cards are populated with "Yes"

 

I have got the following code in the "On Visible" property of the data card:

f(
Text(TextInput2_5.Text) = "Yes",
true,
false
) & If(
Text(TextInput2_4.Text) = "Yes",
true,
false
) & If(
Text(TextInput2_3.Text) = "Yes",
true,
false
) & If(
Text(TextInput2_2.Text) = "Yes",
true,
false
)

 

I am getting a warning that says this , is this just because the fields are currently blank? or is there something wrong with this code?  

 

Very new to powerapps, grateful for all help!

DJOpfc_24_0-1708031582042.png

 

 

 

Creating Apps

Categories:
I have the same question (0)
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at

    Hi @DJOpfc_24 

     

    There is no need to use the Text() function or the If() function in this case. You can directly compare the text properties of the input fields with "Yes". Here’s how you can modify your code:

    TextInput2_5.Text = "Yes" &&
    TextInput2_4.Text = "Yes" &&
    TextInput2_3.Text = "Yes" &&
    TextInput2_2.Text = "Yes"
    

     

    If you have any questions or feedback, please let me know. Have a great day! 😊

    -----------------------
    PowerYsa Power Platform Enthusiast [LinkedIn] | [Youtube]

    I love to share my knowledge and learn from others. If you find my posts helpful, please give them a thumbs up 👍 or mark them as a solution ✔️. You can also check out my [@PowerYSA] for some cool solutions and insights. Feel free to connect with me on any of the platforms above. Cheers! 🍻

     

  • Verified answer
    WarrenBelz Profile Picture
    156,277 Most Valuable Professional on at

    Hi @DJOpfc_24 ,

    I assume you mean the Visible property - if so you only need this

    TextInput2_5.Text = "Yes" && TextInput2_4.Text = "Yes" && TextInput2_3.Text = "Yes" && TextInput2_2.Text = "Yes"

    if all 4 need to be yes - you do not need If/true/false

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

     

  • DJOpfc_24 Profile Picture
    16 on at

    Thank you SO much!

    This has gotten rid of my yellow triangle!

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 396 Most Valuable Professional

#2
11manish Profile Picture

11manish 134 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 101 Super User 2026 Season 2

Last 30 days Overall leaderboard