After a logged-in user updates their profile on the front end, I'd like to redirect them to the same page but show a success message. I believe I can do this with craft.request.getPost()
but it's not working for me. Code below:
<input type="hidden" name="test" value="xyz">
and then
{% set success = craft.request.getPost('test') %}
{% if success %}
Success message
{% endif %}
I can see "test" in my dev tools network tab but can't seem to access it.