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

What is Framer? Join the Community
Return to index
Mariusz Dziechciaronek
Posted Sep 07 - Read on Facebook

Hello guys,
how to get access to the input value, I'm trying this code, similar to the JS but it doesn't work:

layerA = new Layer

layerA.html = "<input type='text' value='Hello'>"
x = layerA.querySelectorAll("#input").value
print x


Mariusz Dziechciaronek

It looks nice, but unfortunately it returns "undefined"

Steve Ruiz

Here's the super basic way to make an input in Framer:

layer = new Layer
input = document.createElement('input')

Then you can get this value any time you need it.

layer.onTap -> print input.value

Read the entire post on Facebook