ModX Revolution FormIt pass url variable to form

1.4k views Asked by At

I am using FormIt extra in Modx Revolution and I have an url like

.../page.html?data1=value1&data2=value2 

I want to pass these values into new form on the page. How do I do that without using JS? THX

1

There are 1 answers

0
Kudykam On BEST ANSWER

Solved using [[!FormItRetriever]] snippet..

    [[!FormIt?
   &hooks=`redirect`
   &store=`1`
   &clearFieldsOnSuccess=`1`]]

Set input value: value="[[+fi.someValue]]"

On Landing page paste: [[!FormItRetriever]] before FormIt call.. and use same input value="[[+fi.someValue]]" in form.