I have a multiple form submission. Basically, starting from a menu item for the first form and use 'Submit URL' with Itemid to post to the next form. And all is well, the template uses the menu item parameters (which at this point is only the page class suffix) of the original menu item.
The final form sends the email but requires all the form fields to be displayed on the final submitted message page.
I used 'On Submit code - after sending email' to build out the html using the posted values.
Once its returned I would like to use the Itemid from the original menu item I started to form processing with, as some of its parameters are needed for my template.
How to I set them Itemid for the final submitted message page (or just append to the page class suffix)?
Thanks in advance for your time!
The final form sends the email but requires all the form fields to be displayed on the final submitted message page.
I used 'On Submit code - after sending email' to build out the html using the posted values.
Once its returned I would like to use the Itemid from the original menu item I started to form processing with, as some of its parameters are needed for my template.
How to I set them Itemid for the final submitted message page (or just append to the page class suffix)?
Thanks in advance for your time!
Hi tfs,
There are 3 ways :
#1- hack chronocontact.html.php to add $_GET[itemid'] to the action URL
#2- use your own action URLS in the forms action urls field and include the itemid of course!
#3- set the itemid variable globally somehow through the template!
Let me know if you cant get this done and I will try to add more details!
Cheers
Max
There are 3 ways :
#1- hack chronocontact.html.php to add $_GET[itemid'] to the action URL
#2- use your own action URLS in the forms action urls field and include the itemid of course!
#3- set the itemid variable globally somehow through the template!
Let me know if you cant get this done and I will try to add more details!
Cheers
Max
Thanks for the quick response!
I found a fourth way:
Form tag attachment:
I found a fourth way:
Form tag attachment:
onsubmit="this.action = this.action+'&Itemid=124';"
Cool, Thanks for sharing this one too😉
Cheers
Max
Cheers
Max
Thanks for the quick response!
I found a fourth way:
Form tag attachment:
onsubmit="this.action = this.action+'&Itemid=124';"
this is exactly what I need too. Where should this be added, I assumed that the form tag is generated by the system?
Hi naghris,
In the Form Tag Attachment box on the General Tab.
Bob
Excellent support. Thank you!
This topic is locked and no more replies can be posted.