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

What is Framer? Join the Community
Return to index
Daniel Alvarez
Posted Jul 25 - Read on Facebook

Hi guys! I'm still learning about about Framer. I'm using the module Input Framer (https://github.com/ajimix/Input-Framer).

Is it possible to trigger an event when an you've interacted with an input layer? I want to show a layer after an input has been registered in that field.

inputA,onClick >
if inputA.value.length > 0
btnA.switch("appear")

I'm not sure if "onClick" is correct for this interaction.

1 Comments

Koen Bok

onClick can work, but the official one would be `focus`, which means a user prepares for editing. The opposite is `blur`.

You can read more here: https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/blur

You can use it like:
Events.wrap(inputA.input).on "focus" -> ...

Read the entire post on Facebook