Hi,
The event Add System Message is static now.
Is there any way to hack it and display dynamic message?
For example
"Data saved. Reported by {operator}"
or
"Report no {report_no} saved."
Or I missed some way to use it?
Regards
Henryk
The event Add System Message is static now.
Is there any way to hack it and display dynamic message?
For example
"Data saved. Reported by {operator}"
or
"Report no {report_no} saved."
Or I missed some way to use it?
Regards
Henryk
Hi Henryk,
Not with the current version of the action - I just looked at the code. But you can do it with a Custom Code action. Add code like this
Bob
Not with the current version of the action - I just looked at the code. But you can do it with a Custom Code action. Add code like this
<?php
$mainframe =& JFactory::getApplication();
$message = "Data saved. Reported by {$form->data['operator']}";
$mainframe->enqueuemessage($message);
?>
Bob
Thanks Bob.
That's what I need.
I still miss some knowledge about J! API..
Henryk
That's what I need.
I still miss some knowledge about J! API..
Henryk
Similar to this, what if I want to display a system message if the SUBMIT button is pressed, but not display one of the BACK button is used? So, if the user saves changes by hitting SUBMIT, a message stating that the changes were saved will appear. If they hit BACK, they are redirected to the last page without a system message.
This topic is locked and no more replies can be posted.