Forums

Display message when using Email action

goliath 19 Aug, 2015
I use a ChronoForm in combination with ChronoConnectivity. One of the options in the form is to email the field values. I use a button to do this. After emailing the form is refreshed. All this works perfectly. But the only thing is that I can't see if I already pushed the mail button. So is it possible to display a message on top of the form after using the Email action? Similar to the green 'Saved successfully' message when you use the DB Save action.
GreyHead 19 Aug, 2015
Hi geertmartens,

You can use a Custom Code action after the Email action to add a Joomla system message:
<?php
$app = \JFactory::getApplication();
$app->enqueuemessage('some message');
?>
Joomla! will show this on the next page displayed.

Bob
goliath 19 Aug, 2015
Answer
Hi Bob

Thanks for the answer!
I also found this topic here.

Regards

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