cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tugba
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
leyburn19
Memorable Member
Memorable Member

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

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

Select(button1)

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)

crm.gif

 

 

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

there is a misunderstanding.My fault sorry

 Untitled.png

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

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.

 


@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

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.
Mike8
Memorable Member
Memorable Member

You can try 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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,857)