Hi, is it possible to show a confirmation message (thanks message) on submit within the Joomla info box that most templates have?
Edit:
Answer: insert this code into the "Custom Code" event after emails (must be be in advanced mode of form wizard):
Thanks Bob!
Edit:
Answer: insert this code into the "Custom Code" event after emails (must be be in advanced mode of form wizard):
<?php
$app =& JFactory::getApplication();
$app->enqueuemessage('Your message goes here');
?>
Thanks Bob!
Hi ironlion,
Yes, there is a Show Message action (but don't use that to show an error message).
You can also just use a Custom Code action with PHP:
Bob
Yes, there is a Show Message action (but don't use that to show an error message).
You can also just use a Custom Code action with PHP:
<?php
$app =& JFactory::getFramework();
$app->enqueuemessage('Your message goes here');
?>
Bob
Thank you Bob! Would that be the "Show Thanks Message" event under "Core Actions"?
One other question: I'm using 4.0 RC3.5.2 on this particular site (Joomla 2.5.8). The form I want to apply this action to was created in the "Easy Form Wizard" - where I cannot add events. Is there a way to convert that form or do I have to recreate it in the (non easy) Form Wizard?
One other question: I'm using 4.0 RC3.5.2 on this particular site (Joomla 2.5.8). The form I want to apply this action to was created in the "Easy Form Wizard" - where I cannot add events. Is there a way to convert that form or do I have to recreate it in the (non easy) Form Wizard?
Hi ironlion37,
I think you probably need to use the Code after Email box in the Easy Wizard - the Thanks Page doesn't accept PHP if I remember correctly.
Please see this FAQ about changing to the Form Wizard.
Bob
I think you probably need to use the Code after Email box in the Easy Wizard - the Thanks Page doesn't accept PHP if I remember correctly.
Please see this FAQ about changing to the Form Wizard.
Bob
Thanks Bob, I converted the form to the advanced wizard which gave me a custom code box. However, when I entered the code you provided (trying both the controller and view options in the custom code box), it gives this error on form submit:
Fatal error: Call to undefined method JFactory::getFramework() in /.../components/com_chronoforms/form_actions/custom_code/cfaction_custom_code.php(16) : eval()'d code on line 2
This topic is locked and no more replies can be posted.