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 / Collect without the us...
Power Apps
Answered

Collect without the use a of a button / Why does PA not allow two functions on a button?

(0) ShareShare
ReportReport
Posted on by 101

Hi all,

 

I'd like to achieve something which should be simple, on the press of a button collect my data and then update the context of several items within the same page to not be visible. However it will simply not allow me to do this. Whether I use And, & or &&.

 

The collection works fine on its own as does the updatecontext requirement. Why?

 

What's my alternative? I tried putting the collection in a label to react to an if statement based on a true value from another box but didn't work. Just red lines it.

 

Categories:
  • Verified answer
    Jim169 Profile Picture
    80 on at

    You can chain multiple functions together by separating them with a semi colon

     

    e.g.

        ClearCollect(colUsers, Users);  UpdateContext({ locUser: First(colUsers).Name})

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

#2
M Bilal Khan Profile Picture

M Bilal Khan 320

#3
Mohsin Ali Profile Picture

Mohsin Ali 246

Last 30 days Overall leaderboard