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
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 70 members 2,983 guests
Recent signins:
Please welcome our newest community members: