Forums

Show Submission Thank you message as Joomla system message

ironlion37 17 Mar, 2016
Hi,

I've been using chronoforms for years and love it. There is one thing that has always bothered me though: I want to be able to display the "Thanks, your message has been received!" text as a Joomla system message. Meaning, when the form submits, the page reloads to the top (my forms are usually below the fold) and it leaves the user hanging as to whether the submit worked. If they scroll down to where the form is, they'll see the "Thank you" message, but it would be so much better if that message would display at the top of the site in nice large, styled letters (i.e., in the drawer module position on RT templates - like a Joomla system message does).

(How) can this be done?
GreyHead 17 Mar, 2016
Hi ironlion37,

In ChronoForms v4 you can use the Show System Message action from the Utilities actions group.

Bob

For other readers: In CFv5 you can add the code to a Custom Code action
<?php
$app = \JFactory::getApplication();
$app->enqueueMessage('Add message here');
?>
ironlion37 06 Apr, 2016
Thanks Greyhead. When you say "Utilities actions group", I'm not sure what you're referring to. Where is that?

Joomla 3.5

ChronoForms
Administrator Component 4.0.6

ChronoForms
Site Module V4.0.3

chronoforms
Site Plugin V4.0.3
GreyHead 07 Apr, 2016
Hi ironlion37,

You can't see these if you use the Easy Form Wizard, switch the Form Wizard Mode setting on the General tab to show the full range of actions (but don't switch back again as you may lose settings).

Bob
ironlion37 07 Apr, 2016
Thanks Greyhead.

I'm not seeing a "general tab" anywhere...
ironlion37 08 Apr, 2016
And chronoforms is behaving very strangely. Please see attached image.

When I click on Form Wizard, a message appears that says the form has been saved successfully and a new, no title form is added to the list. Something is wrong.

I just updated to 3.5.1 and installed the latest version of chronoforms V4

I do see that the chronoforms download page show a date of 3/22/16 for Chronoforms_V4.0.6_J3.zip. However, when I install it, I see this on the extensions page on my site:

ChronoForms
Administrator Component 4.0.6 22.Aug.2014
GreyHead 08 Apr, 2016
Hi ironlion37,

Click the form Name link to see the General tab (and a few others).

I've just checked my copy of CFv4 on Joomla! 3.5.0 and I can’t save a form with an empty name. Could be a JavaScript error on the page but I would expect that to cause more problems. I'll update to 3.5.1 later and re-try.

Later : all well with 3.5.1 too.

Bob
ironlion37 11 Apr, 2016
Greyhead,

[list=]I changed the form wizard type to advanced.[/list]
[list=]I then saved that.[/list]
[list=]Then I clicked on Wizard edit and added the "Add system message" item into the form.[/list]

After doing that, I'm getting some kind of reporting on form submission (see image) which is not what I'm going for. I'm trying to just get a "thank you" message to appear at the top of my site.
ironlion37 11 Apr, 2016
Ok, so I realized that's just the debugger displaying and removed that from the form's events.

But the system message is just not appearing. For clarity, this form is published to the template's "footer-a" module position. The templates is set to display system messages in the "drawer" module position (at the top of the site). That shouldn't matter though right? If the form is generating a system message, Joomla should take it from there and display it through the template?
GreyHead 11 Apr, 2016
Hi ironlion37,

Yes, the display is handled by Joomla and the template. As far as I know nothing significant has changed with the new Joomla releases that would affect this.

Does it work if you test from the View Form link?

Bob
ironlion37 11 Apr, 2016
Yes it does, but only then.
GreyHead 12 Apr, 2016
Hi ironlion37,

Hmmm then either the template doesn't support system messages (or hides them), or possibly there is a redirection of some kind so the message has 'expired' before the final page is displayed.

Bob
This topic is locked and no more replies can be posted.