Event loop and parameter url

Preserve URL parameters when a form reloads after a failed CAPTCHA check.

Overview

The ChronoForms event loop action does not automatically retain URL parameters from the initial page load.
Add hidden input fields to your form with names matching the URL parameters. These fields will store and resubmit the parameter values when the form reloads.

Answered
pa parsifaltheking 21 Jul, 2015
Hi, i've create a form in which some field are populated from url parameter :
An url is:
index.php/component/chronoforms5/?chronoform=Iscrizione_Antincendio_Rischio_Basso&cs=Addetti antincendio Rischio basso&dt=24/11/2015&pr=100.00&sd=Pioven di sacco
where cs are the name of course,
dt is data,
pr is the price
and sd is city.
In the form i've added a chapca control with on fail the event loop action.

But there is a problem: if the chapca code is not correct, the systems mantain the data field but not the url parameter and it redirect me to te same page without parameters:

/index.php/component/chronoforms5/?chronoform=Iscrizione_Antincendio_Rischio_Basso&event=submit

How i can to pass this parameter url in the refreshed page? there is a way?

Thanks
Gr GreyHead 21 Jul, 2015
Answer
Hi parsifaltheking,

Please add hidden inputs with the same names as the URL parameters
<input type='hidden' name='dt' id='dt' value='' />
<input type='hidden' name='pr' id='pr' value='' />
<input type='hidden' name='sd' id='sd' value='' /> 

That should add them to the form data when it is reloaded.

Bob
This topic is locked and no more replies can be posted.