cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CNT
Level: Powered On

Trigger OnSelect on a Button

Hello,

I have a TextInput and a Button on a screen. When the user enters some text into the TextInput and Presses Enter, I want the OnSelect() on the Button to be triggered. Anyone has a clue?

Thanks in advance!

2 ACCEPTED SOLUTIONS

Accepted Solutions
xzDan
Level 8

Re: Trigger OnSelect on a Button

Textbox OnChange: Select(<button name>)

 

Does that do what you want?

View solution in original post

CNT
Level: Powered On

Re: Trigger OnSelect on a Button

Hi @xzDan 

Thanks, that works. I want to one more thing. In the OnSelect() of the Button after I do some things, I want the TextInput to be selected again, so that the user can type the next thing. So, in the OnChange() of the Button, I did Select(TextInput1). That didn't work?

View solution in original post

3 REPLIES 3
xzDan
Level 8

Re: Trigger OnSelect on a Button

Textbox OnChange: Select(<button name>)

 

Does that do what you want?

View solution in original post

CNT
Level: Powered On

Re: Trigger OnSelect on a Button

Hi @xzDan 

Thanks, that works. I want to one more thing. In the OnSelect() of the Button after I do some things, I want the TextInput to be selected again, so that the user can type the next thing. So, in the OnChange() of the Button, I did Select(TextInput1). That didn't work?

View solution in original post

xzDan
Level 8

Re: Trigger OnSelect on a Button

Hi @CNT 

 

Off the top of my head, you cannot force the focus of a control. Someone else may know better.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (3,651)