After the form is submitted, the user will remain on the same page. Now I want to show a success message to them.
It's possible to check that change password got an error:
{% set arError = ChangePassword.getErrorMessage %}
{% if arError.message is not empty %}
<p>{{ arError.message }}</p>
{% endif %}
But how to check the operation was successful? I don't won't to put the success message in the else statement because the first time that page loads that message will be shown.
I've got the following
ChangePassword
component onchange-password.htm
page:After the form is submitted, the user will remain on the same page. Now I want to show a success message to them.
It's possible to check that change password got an error:
But how to check the operation was successful? I don't won't to put the success message in the
else
statement because the first time that page loads that message will be shown.