How do I redirect to bookmark when registration form submit errors occur?

On our affiliate registration solicitation page, I use Divi module bookmarks to scroll down to the form. If the user completes the form and hits [Sign Up], the page refreshes to the top of the page where the confirmation message or form error message(s) are below the fold.

Is there a way, without redesigning this page to force the registration form at the top of the page, to redirect the refresh to the bookmark, which is http://getboinged.com/become-affiliate/#affreg ?

Anthony


Comments

One response to “How do I redirect to bookmark when registration form submit errors occur?”

  1. Hi Anthony,
    really you can not configure this redirect. You can configure the redirect url when the form is sent correctly with the attribute ‘redirect_to’.
    in affiliates-pro/lib/core/class-affiliates-registration.php , line 363 you can see that the form isn’t ‘action’ attribute, so it’s redirect to the same page.
    Kind regards,
    Antonio B.

Share