web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Apps
Answered

Icon not visible

(0) ShareShare
ReportReport
Posted on by 96

Hi i have set in the visibility properties in an icon in my gallery to be visible when a button a pressed, but the formula does not seem to work below? Can anyone advise?

 

if(button3_1.pressed, checkbage)

 

Thanks

 

korinne

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

    Hi @kORINNERB 

     

    In this case, the icon will visible when you press the button. Looks this is not going to work.

     

    Since this is the gallery you may need to use other fields on this specific item to compare it. Can you explain what exactly you are trying to do?

  • kORINNERB Profile Picture
    96 on at

    Hi,

     

    I am trying to make a icon visible in the gallery when i press a button.

     

    The idea is when i have patched information through to sharepoint it shows the icon as confirmation the information has been updated or i am happy to go down the route of creating an icon based on the sharepoint list value but would need this when i leave the screen to or the button to set the column values that i have compared back to blank so that the when you back to the screen the icon is no longer there. i have tried this with updateif formula but does not seem to work either, see below;

     

    UpdateIf('QHSE questions', true, {'Audit Complete': Blank()});Refresh('QHSE questions')

     

    I hope this makes sense but let me know 

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @kORINNERB 

     

    I recommend setting the boolean field in SP so that we can reference the icon visible property. For example, on patch update, the new boolean field called "Confirmed" to true.

     

    UpdateIf('QHSE questions', true, {Confirmed: true, 'Audit Complete': Blank()});Refresh('QHSE questions')

     

    and Set the Icon visible property to ThisItem.Confirmed

  • kORINNERB Profile Picture
    96 on at

    Hi @StalinPonnusamy 

     

    I tried the above but it still seems to show the icon as the true does not seem to going to blank in sharepoint on the update if formula, i have also tried patch formula but not working either.

     

     

     

     

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Hi @kORINNERB 

     

    On the Gallery button 

     

    • Patch('QHSE questions',LookUp('QHSE questions', ID = ThisItem.ID), {Confirmed: true});Refresh('QHSE questions')
    •  and Set the Icon visible property to ThisItem.Confirmed

     

    Note: You can add more items to the patch

  • kORINNERB Profile Picture
    96 on at

    Hi @StalinPonnusamy 

     

    I have tried the above but still not working, the button i am pressing is outside the gallery not in the gallery but the icon is inside the gallery, hope this makes sense.

     

    I did try using a patch with a filter also to filter the ones with true to patch them to blank but could not get this to work either

     

    Kind Regards

  • Verified answer
    StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    I assume your code set a blank value for all data. 

    UpdateIf('QHSE questions', true, {'Audit Complete': Blank()});Refresh('QHSE questions')

     

    On the icon visible property in the gallery to

    !IsBlank(ThisItem.'Audit Complete')

     

    This means we so the icon when we some value on 'Audit Complete'

     

  • kORINNERB Profile Picture
    96 on at

    Hi @StalinPonnusamy 

     

    The information is not updating in the complete column in sharepoint still,

     

    I have put the icon in the gallery visible poperty to the formula above and updated the button outside the gallery

     

    The columns are blank currently but when i submit the information with a button, it patches to show a true value in the audit complete field but on either exiting the screen or pressing a button outside the gallery i need it to reset the audit complete columns to blank

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard