cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

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

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.

 

1 REPLY 1
Advocate II
Advocate II

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

 

e.g.

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

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (63,246)