web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SetFocus after conditi...
Power Apps
Unanswered

SetFocus after condition is met

(0) ShareShare
ReportReport
Posted on by 37

I would like to SetFocus(TextInput4) after Len(TextInput3) = 1. How can I do this?

officeadmingsf_0-1626277851195.png

 

Categories:
  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @officeadmingsf In the OnChange of TextInput3 set this,

    If(Len(TextInput3.Text) = 1, SetFocus(TextInput4))
  • officeadmingsf Profile Picture
    37 on at

    i believe that OnChange doesnt work until you click out of the text box. To clarify, if I type "2" into TextInput3, then the SetFocus isn't triggered. it is not until I press enter or tab and click out that it works. 

  • CNT Profile Picture
    10,921 Super User 2024 Season 1 on at

    @officeadmingsf Yup you are right OnChange will fire only when you navigate out of the Textinput.

    If you want the Reset to fire while you are still in the Textinput, we'll have to do some workaround. One suggestion would be,

    You can have an hidden toggle control. In the default property of the toggle, set this, Len(TextInput3) = 1

    In the OnCheck property of the toggle, set this, SetFocus(TextInput4)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 224 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 126

Last 30 days Overall leaderboard