Hi all. I’m trying to add some sort of confirmation message after creating an account on a password.liquid page, but nothing I’ve tried has worked. The page is here: https://www.theloved.one
I’m building it on top of an old Pipeline theme that’s been modified quite a bit. The original password.liquid page just had an email field (the ‘customer’ form) that you could fill in and it would be replaced by a simple text message, which works totally fine. However when I try to use the same code with the larger ‘create_customer’ form, nothing happens. And since this is the homepage, it’s just redirecting to itself, so the fields clear and the account is created successfully, but there’s no way for the user to tell that their account was successfully created, or that anything happened at all.
This is the email-only ‘customer’ form that was part of the original theme:
{% form 'customer' %}
{{ form.errors | default_errors }}
{% if form.posted_successfully? %}
{{ 'general.password_page.signup_form_success' | t }}
{% else %}
{% endif %}
{% endform %}
This is the form where I’m trying to add some sort of notification. The ‘if form.posted_successfully’ action isn’t working, I think because the Recaptcha is preventing the page from redirecting to "https://theloved.one/password?customer_posted=true#contact_form", which is what happens when using the email-only form. This form just stays on the ‘/password’ page without the suffix.
{% form 'create_customer' %}
{{ form.errors | default_errors }}
{% if form.posted_successfully? %}
{{ 'general.password_page.signup_form_success' | t }}
{% else %}
{% endif %}
{% endform %}
I feel like this is something that should be very simple to fix. I’m not a coder, but I’m familiar-ish with adding custom code to all these theme files. And to be clear, I don’t want to keep that email field once I get the full registration form working, it’s just there for testing purposes right now. Any help would be very very welcome!