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 / Image click disable IF...
Power Apps
Answered

Image click disable IF CONDITION

(1) ShareShare
ReportReport
Posted on by 538

Experts,

 

I have an image on a page with onselect set to nextpage navigation.

If the following conditions are satisfied, just the image B should be clickable; else, the image B should be grayed out.

 

Condition . 

Page A is the name of the first page . Label 13 may be found on page A.

The current state is. If the wording on Label3 is 100%, then only picture B on page 2 should be engaged for any actions. Image B should be grayed out if label3 is not equal to 100%.

The following formula is used in picture B, however it is ineffective.

If('page A' = Label13.Text(100%) )

Please share your ideas.

Categories:
  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @AVTS 

    Look to the DisplayMode property of the Image.

    Set it to:

       If(Label13.Text = "100%", Edit, Disabled)

     

    I hope this is helpful for you.

  • AVTS Profile Picture
    538 on at

    thank. But i am getting error,

     

    If('page A',Label13.Text=100%,DisplayMode.Disabled)

     

    Is there any issue in this. 

     

     

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

    @AVTS 

    Yes, you will get an error on that because the syntax is not correct.  I provided you with the correct formula:

      If(Label13.Text = "100%", Edit, Disabled)

    Copy and paste the formula into your DisplayMode.  I am not sure why you modified it.  Controls are global to the app, the page reference you have in not needed. And text must be surrounded by quotes.  Plus, your logic you mentioned indicated that if the label shows 100% then the image should be actionable.  Yours is backward.

    Copy and paste the above formula.

  • AVTS Profile Picture
    538 on at

    Thank you, @RandyHayes 
    It appears that I am overlooking the following points.

     


    I've got two pages.
    Page A and Page B are two pages.

     


    Page A has the Percentage( percent ) information, whereas Page B contains the images.

     


    So, based on the Page A percent changes, the Page B picture should react as previously stated.
    As a result, I attempt to include the Page A data in the Page B picture Displaymode.

     

  • Verified answer
    Himanshu_90677 Profile Picture
    416 on at

    If(Label13.Text = "100%", Display Mode.Edit, Display Mode.Disabled)

  • AVTS Profile Picture
    538 on at

    Thank you @RandyHayes . I missed your valid point. Yes you spot on. Many thanks indeed. 

  • AVTS Profile Picture
    538 on at

    Thank you @Himanshu_90677 

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 250

#3
Mohsin Ali Profile Picture

Mohsin Ali 225

Last 30 days Overall leaderboard