cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate V
Advocate V

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

Re: Trigger OnSelect on a Button

Textbox OnChange: Select(<button name>)

 

Does that do what you want?

View solution in original post

Highlighted
Advocate V
Advocate V

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

Re: Trigger OnSelect on a Button

Textbox OnChange: Select(<button name>)

 

Does that do what you want?

View solution in original post

Highlighted
Advocate V
Advocate V

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

Highlighted
Resolver III
Resolver III

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
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 (6,021)