I'm having an issue with a form. After I submit the form, I get a simple white page with just the html that was entered in the "onSubmit after email" box. The URL shows the correct ItemId so I don't know why it's not loading the joomla template. Any idea what would cause this?
Before Submit URL:
/index.php?option=com_content&view=article&id=82&Itemid=81
After Submit URL:
/index.php?option=com_chronocontact&task=send&chronoformname=SupportRequestForm&Itemid=81
Thanks,
Chris
Before Submit URL:
/index.php?option=com_content&view=article&id=82&Itemid=81
After Submit URL:
/index.php?option=com_chronocontact&task=send&chronoformname=SupportRequestForm&Itemid=81
Thanks,
Chris
Hi Chris,
No idea :-( If you put /index.php?option=com_chronocontact&task=send&chronoformname=SupportRequestForm in your browser, does the template display?
Bob
No idea :-( If you put /index.php?option=com_chronocontact&task=send&chronoformname=SupportRequestForm in your browser, does the template display?
Bob
Yes, actually, it does. The only text in the body part of the template is
"You are not allowed to access this URL" but that make sense because task=send and there was no form submitted.
If I add the ItemId=81 to the end, I get the right sidebar and breadcrumbs too.
It's really a strange problem and when I couldn't find any other posts like it, I was afraid there wouldn't be an easy answer.
It's even more bizar that other forms work just like they should.
My problem is that I'd really like to display some of the forum input on the "Thank you" screen and I can't figure out how to do that with a RedirectURL to another page.
Are the form results stored in any kind of session variables? If there were I could write a plug-in to pull them and display them in the RedirectURL to a Joomla article.
Perhaps it's possible to add them to the session in the onSubmit before email like:
$_SESSION['field'] = $_POST['field'];
"You are not allowed to access this URL" but that make sense because task=send and there was no form submitted.
If I add the ItemId=81 to the end, I get the right sidebar and breadcrumbs too.
It's really a strange problem and when I couldn't find any other posts like it, I was afraid there wouldn't be an easy answer.
It's even more bizar that other forms work just like they should.
My problem is that I'd really like to display some of the forum input on the "Thank you" screen and I can't figure out how to do that with a RedirectURL to another page.
Are the form results stored in any kind of session variables? If there were I could write a plug-in to pull them and display them in the RedirectURL to a Joomla article.
Perhaps it's possible to add them to the session in the onSubmit before email like:
$_SESSION['field'] = $_POST['field'];
Hi enounce,
The only ways that I know of to display a page without the template are to use index2.php or tmpl=component in the url - it seems that neither of these are showing up.
Do you have sef urls on? I 'm trying to think what else might cause this and drawing a blank.
You could try making a copy of the form and see if that does the same thing?
Bob
The only ways that I know of to display a page without the template are to use index2.php or tmpl=component in the url - it seems that neither of these are showing up.
Do you have sef urls on? I 'm trying to think what else might cause this and drawing a blank.
You could try making a copy of the form and see if that does the same thing?
Bob
Thanks for giving it some thought.
I did have SEF urls and that was my first thought so I turned them back off and cleared all the caches (that I know of).
I also tried making a copy of the form. I also tried making a copy of form that works fine and then replaced the form code block and javascript block.
I'm going to try renaming the form fields. Maybe I used a common field name that is conflicting with joomla.
I did have SEF urls and that was my first thought so I turned them back off and cleared all the caches (that I know of).
I also tried making a copy of the form. I also tried making a copy of form that works fine and then replaced the form code block and javascript block.
I'm going to try renaming the form fields. Maybe I used a common field name that is conflicting with joomla.
That did it. I don't know which field name I used but one of them was in conflict.
I think the problem may have been caused by a modification to Joomla for virtuemart that our web design company made. In virtuemart when you update the cart, it submits all fields via post including the ItemId. This causes the wrong template to be used since Joomla wants the ItemId on the query string. I think they made a change some where in Joomla to look for posted variables also but none of my form fields was named id, Itemid or option so I'm still not sure which one caused the issue.
In case someone else is much more familiar with Joomla and it would help others to know which field names to avoid, I've included my field lists below.
Didn't work:
name,fromem,r_purchase,sn,r_activate,softwareid,flashversion,product,version,issue,player,format,os,question
Works:
text_nm,text_em,r_purchase,text_sn,r_activate,text_sid,text_flash,select_pd,select_ver,select_issue,text_player,select_fmt,select_os,text_q
I think the problem may have been caused by a modification to Joomla for virtuemart that our web design company made. In virtuemart when you update the cart, it submits all fields via post including the ItemId. This causes the wrong template to be used since Joomla wants the ItemId on the query string. I think they made a change some where in Joomla to look for posted variables also but none of my form fields was named id, Itemid or option so I'm still not sure which one caused the issue.
In case someone else is much more familiar with Joomla and it would help others to know which field names to avoid, I've included my field lists below.
Didn't work:
name,fromem,r_purchase,sn,r_activate,softwareid,flashversion,product,version,issue,player,format,os,question
Works:
text_nm,text_em,r_purchase,text_sn,r_activate,text_sid,text_flash,select_pd,select_ver,select_issue,text_player,select_fmt,select_os,text_q
This topic is locked and no more replies can be posted.