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 / Writing an If Visible ...
Power Apps
Answered

Writing an If Visible Statement

(0) ShareShare
ReportReport
Posted on by 29

I have a power app that is one screen and as you click the next button it pulls up different questions. I also have a radio button question that I am wanting to only show if the loccurrentpage is 4 or the loccurrentpage is 4 and the radio is selected "no"

 

How would I write that statement in the visible field? The text below is what I am using in other areas of my form but there is no OR statement. 

 

If ('Property Damage Radio_1'.Selected.Value="Yes" && locCurrentPage="Page 4",true, false)

 

So I am wanting it to hide once the user has selected Yes, so that other text can populate on the screen. 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @Techy1234 

    Your visible property would simply be:

    loccurrentpage = 4 || loccurrentpage=4

    This will be true (and thus visible) if the conditions are met.

     

    I hope this is helpful for you.

  • Techy1234 Profile Picture
    29 on at

    Randy, Thank you for your response. Sorry I was not explaining clearly. I have it to show if it is on the 4th page but I am also only wanting the radio option to show if nothing is selected on the radio or if "No" is selected on the radio and cannot figure out how to do that. 

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

    @Techy1234 

    Sorry as well that my formula was a little screwy.  I just looked at it again and wondered why I was check the page for the same number twice...

     

    Anyway, so if you want the Radio control to only be visible if on page 4 and the selected value is nothing or No, then your Visible formula would be:

        locCurrentPage = "Page 4" && !(Self.Selected.Value = "Yes")

     

    This will show the control if it is on page 4 and the value is NOT Yes (I assume your radio is Yes and No).  This will cover blank (no selection) and "No" being selected.

  • Techy1234 Profile Picture
    29 on at

    Thank you! That works perfectly!

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard