Forums

How to pass Itemid for the final submit message pg

tfs 10 Apr, 2008
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!
Max_admin 11 Apr, 2008
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
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
tfs 11 Apr, 2008
Thanks for the quick response!

I found a fourth way:

Form tag attachment:
onsubmit="this.action = this.action+'&Itemid=124';"
Max_admin 11 Apr, 2008
Cool, Thanks for sharing this one too😉

Cheers

Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
naghris 16 Dec, 2008

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?
GreyHead 16 Dec, 2008
Hi naghris,

In the Form Tag Attachment box on the General Tab.

Bob
naghris 16 Dec, 2008

Hi naghris,

In the Form Tag Attachment box on the General Tab.

Bob



Excellent support. Thank you!
mac 11 Feb, 2009
...also thank you by me🙂 mac
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger