cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
CNT
Community Champion
Community Champion

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
Resolver III
Resolver III

Textbox OnChange: Select(<button name>)

 

Does that do what you want?

View solution in original post

CNT
Community Champion
Community Champion

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
Resolver III
Resolver III

Textbox OnChange: Select(<button name>)

 

Does that do what you want?

View solution in original post

CNT
Community Champion
Community Champion

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
Resolver III
Resolver III

Hi @CNT 

 

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (31,262)