By default, after a submission of a form, SEBLOD display the message below :

Message


Successfully Saved

This message can be changed in the tab configuration of the form. Sometime, you need to change this message, depending on the informations that the user has submitted. For that, you must use the plugin field " Code", on the event "Afterstore".

Add a field Code Afterstore in the form. In this event, you have access to 2 variables :

    $fields  => the array of each fields in the form
    $config  => an array of various parameters :
        $config['message'] => the message to display
        $config['message_style'] => the Joomla! style of message (message, notice, warning,...)
        $config['pk']  => the id of the new content created
        $config['isNew']  => 1 : creation  /  0 : edition
        ...


For example, setting the $config like that :

$config['message'] = 'Thank '.$fields['first_name']->value.' '.$fields['last_name']->value.'for join us,<br />';
$config['message'] .= 'find here your ID : '.$config['pk'];
$config['message_style'] = 'message';


will display the joomla mesage :

Message

Thank Ben Thomas for join us,
find here your ID : xxxxxx

Best Joomla Hosting Recommendation

ASPHostPortal.com provides our customers with Plesk Panel, one of the most popular and stable control panels for Windows hosting, as free. You could also see the latest .NET framework, a crazy amount of functionality as well as Large disk space, bandwidth, MSSQL databases and more. All those give people the convenience to build up a powerful site in Windows server. We offers Joomla hosting starts from $5/month only. We also guarantees 30 days money back and guarantee 99.9% uptime. If you need a reliable affordable Joomla Hosting, we should be your best choice.