Hello from Spain!
I´ve a form with several radiobuttoms, when the user click on submit button, how could I go to one or another form according with the user choice?
Thank you!
I´ve a form with several radiobuttoms, when the user click on submit button, how could I go to one or another form according with the user choice?
Thank you!
Hi gemag,
You can use PHP in a Custom Code action to redirect the user using $mainframe->redirect('some_url'); or you can build a URL using the ReDirect UL action and then redirect the user with the ReDirect User action.
Bob
You can use PHP in a Custom Code action to redirect the user using $mainframe->redirect('some_url'); or you can build a URL using the ReDirect UL action and then redirect the user with the ReDirect User action.
Bob
HI ,
I am also interested in this.
I don't sucess to make it work
my form are:
form 1
form 2
I am also interested in this.
I don't sucess to make it work
my form are:
form 1
form 2
Hi Bob and all,
I have a question in the same vein. I want to pass a unique id to a second form, which will retrieve info from the DB.
I set the ReDirect URL and set token=pid in that event. I added a blank Redirect User action.
The users enters the pid in Form1. When the form is submitted, it goes to the correct (second) form but the url is literally
http://www.mysite.com/index.php?option=com_chronoforms&chronoform=Form2&token=pid
So the pid value is not getting passed. If I manually enter a pid in the URL, e.g., http://www.mysite.com/index.php?option=com_chronoforms&chronoform=Form2&token=1234, then Form2 does display the DB info I want.
What am I missing? Many thanks,
Deb
I have a question in the same vein. I want to pass a unique id to a second form, which will retrieve info from the DB.
I set the ReDirect URL and set token=pid in that event. I added a blank Redirect User action.
The users enters the pid in Form1. When the form is submitted, it goes to the correct (second) form but the url is literally
http://www.mysite.com/index.php?option=com_chronoforms&chronoform=Form2&token=pid
So the pid value is not getting passed. If I manually enter a pid in the URL, e.g., http://www.mysite.com/index.php?option=com_chronoforms&chronoform=Form2&token=1234, then Form2 does display the DB info I want.
What am I missing? Many thanks,
Deb
Hi Deb,
I get confused by this because the usage isn't consistent but I think that you need token={pid} in the ReDirect URL.
If I remember correctly the ReDirect URL action allows curly brackets in the Fields/params box so a plain text string is left as a static value and a curly bracketed string is treated as dynamic.
The cURL action on the other hand doesn't use curly brackets - and so can't accept static values. Static values have to be added to the $form->data[] array before the action is run.
Bob
I get confused by this because the usage isn't consistent but I think that you need token={pid} in the ReDirect URL.
If I remember correctly the ReDirect URL action allows curly brackets in the Fields/params box so a plain text string is left as a static value and a curly bracketed string is treated as dynamic.
The cURL action on the other hand doesn't use curly brackets - and so can't accept static values. Static values have to be added to the $form->data[] array before the action is run.
Bob
This topic is locked and no more replies can be posted.