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 Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,535)