M
M
Matvey Tomilov2018-10-01 13:09:33
MODX
Matvey Tomilov, 2018-10-01 13:09:33

Why doesn't AjaxForm with pdoResources work?

The call inside &form=`formTpluneed` doesn't work, it's just an empty field.
I call modal windows on the page using pdoResources, in each modal window an AjaxForm template


<input type="hidden" id="pagetitle" value="" name="pagetitle">

In theory, inside value="" should be the name of the page that pdoResources calls, but inside &form=`formTpluneed` stops working, although Вопрос works, but outputs accordingly the page on which all the modals, and not the one you need
How can I solve this problem? so that the name of the desired page is sent in the letter

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Ruslan, 2018-10-01
@ruslan_aleev

Hello, try passing the pagetitle to the AjaxForm snippet first and only then call the field to the AjaxForm template, i.e. it will be like this:


Those. inside the AjaxForm template does not see , because the snippet looks for its parameters, not pages.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question