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 Platform Community / Forums / Power Apps / Collect without the us...
Power Apps
Unanswered

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:
I have the same question (0)
  • 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard