This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
John Sherwin
Posted Jul 10 - Read on Facebook

Hi folks, any idea how I can get an input to focus on a click event on a button when being used with the flow component. Basically I want the password input on the second screen of this prototype to focus when I tap 'Done' on the first screen. Seem to be getting some weirdness with this when using within the flow component. -

2 Comments

Chris McDonnell

I used to use Indigo Studio a lot, and this kind of form interaction was possible through some layering hocus pocus. I'd layer a field with opacity set to 0 over the button, and instructed it to change to 100% opacity when focused on. Something similar should be possible in framer

John Lee

Add this to your code:
__ViewController.onTransitionEnd ->
____inputB.focus()

Hope this is what you needed!

Read the entire post on Facebook