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 / Need Help in Gallery C...
Power Apps
Answered

Need Help in Gallery Control

(0) ShareShare
ReportReport
Posted on by

Hi,

 

We have added icon in Gallery control which submits changes made by user directly in Gallery. We want that when user makes changed Submit Icon should get visible. We have created a variable to check update but when we set Icon visibility to true, icons for other items are also getting enabled. We want that it should get updated only for those items where user has made changes.

Could anyone help for this?

Screenshot of gallery item:

MayurHande986_0-1652189505389.png

 

Categories:
  • slerch Profile Picture
    59 on at

    The best way to do this is to create an empty table on the pages visible property:

     

    ClearCollect(
     colUpdates,
     Blank()
    );

     

    This will control which Save Icons are visible.

     

    The Dropdown in the gallery will have an OnChange property of:

     

    Collect(
     colUpdates,
     {updateId: ThisItem.ID}
    );

     

    This will add the ID of the item to your collection of records that can be updated.

     

    To make the Save Icon visible, you'll want to set it's visible to:

     

    ThisItem.ID in colUpdates.updateId

     

     

    Finally the OnSelect of your Save Icon will be (assuming your updating to a SharePoint List):

     

    // Update the record in the List
    UpdateIf(
     SpList,
     ID = ThisItem.ID,
     {Status: Dropdown2.SelectedText.Value}
    );
    // Remove ID from update collection
    RemoveIf(
     colUpdates,
     updateId = ThisItem.ID
    );

     

    That will update your record and remove the ID from the control table, thus making removing the Visibility from it's respective Save Icon.

     

    Hope this helps!

     

     

  • eka24 Profile Picture
    20,925 on at

    Let know the current formula for the variable so it can be modified.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Verified answer
    HandeMV Profile Picture
    on at

    @eka24 

     

    I used following formulae for Dropdown and it is working:
    If(TaskStatusInput.Selected.Value <> ThisItem.'Task Status',true,false)

     

    But for Text Area Field it is not working. Even without any edit it considers it as changed and return true for if condition.

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 130

Last 30 days Overall leaderboard