> For the complete documentation index, see [llms.txt](https://v5.docs.allcancode.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://v5.docs.allcancode.com/writing-frontend-logic/binding-inputs-to-data.md).

# Binding inputs to data

Step 1: Import a input field element

Step 2: Select the input field

<figure><img src="https://1127799972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiibRrLuxVy9iwcIbtQmW%2Fuploads%2FtcbSwO0MrbO28qBPa6uV%2FScreenshot%202023-10-25%20at%201.25.47%E2%80%AFPM.png?alt=media&amp;token=1d8bd35d-8d04-4bd3-9f92-a1b4070a7abb" alt=""><figcaption></figcaption></figure>

First way of implementation

Step 3: Press "Templates" button

<figure><img src="https://1127799972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiibRrLuxVy9iwcIbtQmW%2Fuploads%2F71zKWgRGpzJTOHqjZfSH%2FScreenshot%202023-10-25%20at%2012.33.48%E2%80%AFPM.png?alt=media&amp;token=80e3e5b0-abfa-4e8e-834d-f6e6eff1ac6a" alt=""><figcaption></figcaption></figure>

Step 4: Select "Bind input to variable"

<figure><img src="https://1127799972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiibRrLuxVy9iwcIbtQmW%2Fuploads%2Fd1ezn7HRvcyWW0JpT1Uf%2FScreenshot%202023-10-25%20at%2012.45.40%E2%80%AFPM.png?alt=media&amp;token=44f9d458-4d73-4802-b684-98e3ddfc784f" alt=""><figcaption></figcaption></figure>

Second way of implementation

Step 3: Create a function with parameter and fill in onChange field (interactions panel) with function's name

<figure><img src="https://1127799972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiibRrLuxVy9iwcIbtQmW%2Fuploads%2FM6GG2jYt7xOosNeKKwIZ%2FScreenshot%202023-10-25%20at%201.12.56%E2%80%AFPM.png?alt=media&amp;token=125d1455-b584-4e05-9678-8fec2436c0b5" alt=""><figcaption></figcaption></figure>

Step 4: Create a variable and complement "Value" field (content panel) starting with $. &#x20;

<figure><img src="https://1127799972-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiibRrLuxVy9iwcIbtQmW%2Fuploads%2FiLpfw2VCFRbjrQicttpU%2FScreenshot%202023-10-25%20at%201.16.26%E2%80%AFPM.png?alt=media&amp;token=028acee4-d2a5-44a2-beaf-4db46aac4332" alt=""><figcaption></figcaption></figure>
