M
M
Matvey Tomilov2018-10-13 08:53:19
MODX
Matvey Tomilov, 2018-10-13 08:53:19

How to pass data from input to modx code?

How to pass a value from a form and do I need to create a submit button for this, or is it enough just to enter a number

<div>
                <div>
                  <label>от</label>
                  <input id="area_from" name="area_from" type="text">
                </div>
                <div>
                  <label>до</label>
                  <input id="area_to" name="area_to" type="text">
                </div>
              </div>

to a snippet in a field instead of numbers &tvFilters=`area>=200,area<=400`

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Tarasov, 2018-10-16
@etozhematvekat

You have several options:
1) Use Fenom, it can work with GET parameters, write the desired call
2) More old-school - write a snippet that processes the GET variable and passes it to pdoResources, google it, there are a lot of solutions. Well, or now I've already found you:
one
two
three

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question