cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

activate 3 buttons with one button

Hello,

I want to activate 3 or maybe more buttons with one button How can ı do that. I saw select function but ı need  as multiple select funtion.

tugba

9 REPLIES 9
Highlighted
Super User
Super User

Re: activate 3 buttons with one button

What do you mean? Why cant all the actions just be done with the one button?

Highlighted
Helper I
Helper I

Re: activate 3 buttons with one button

I found a Select function but ı guess it just activate one button like 

Select(button1)

Highlighted
Resolver I
Resolver I

Re: activate 3 buttons with one button

This is your activate button:

 

OnSelect:

Set(Activated;true)

Button 1,2,3;

DisplayMode:

if(Activated=true,Displaymode.Edit,Displaymode.Disabled)

What you do is you set an variable with the activate button. This variable is a boolean (true/false). You use the value in the other buttons.

 

Instead of a Activate-button, you can also use a Toggle. Replace the DisplayMode formula of the buttons with:

if(toggle1.value=true,DisplayMode.edit,Displaymode.disabled)
Highlighted
Resolver I
Resolver I

Re: activate 3 buttons with one button

crm.gif

 

 

If this post is solving your issue, please mark my post as Solution. Thank you! Smiley Happy

Highlighted
Helper I
Helper I

Re: activate 3 buttons with one button

there is a misunderstanding.My fault sorry

 Untitled.png

I want that when ı press RunAll button it should be run the other buttons

Highlighted
Resolver I
Resolver I

Re: activate 3 buttons with one button

Easiest option is to place those 3 formula's in the ForAll button, sperated with an ";".

You can also use concurrent() to execute the functions at the same time instead of sequentially.

Hope this helps.
Highlighted
Helper I
Helper I

Re: activate 3 buttons with one button

 


@Merlijn wrote:
Easiest option is to place those 3 formula's in the ForAll button, sperated with an ";".

You can also use concurrent() to execute the functions at the same time instead of sequentially.

Hope this helps.

I thought doing as you mentions but actually ı have too much code in button and also ı have more than 3 button

Highlighted
Community Support
Community Support

Re: activate 3 buttons with one button

Hi @tugba ,

I'm afraid it's not supported to call a button's OnSelelct by another button.

For now, if you want to  call a button's OnSelelct, you could only click that button to make this.

If you want to act three actions, I suggest you set them on one button:

Formula1;Formula2;Formula3   (they will run in order)

Or Concurrent(Formula1;Formula2;Formula3 )   (they will run at the same time)

 

If you want to call a button's OnSelelct by another button,

I suggest you express your views on PowerApps Ideas Forum. Your precious advice will be very helpful for our work.

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

 

Best regards,

Community Support Team _ Phoebe Liu

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
Super User
Super User

Re: activate 3 buttons with one button

You can try the this:

Button1.OnSelect=Select(Button2);Select(Button3);Select(Button4)

 

https://docs.microsoft.com/nl-nl/powerapps/maker/canvas-apps/functions/function-select

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (9,053)