/
Hardcoded user registration process from AJAX [5.2.2-B1]
Hardcoded user registration process from AJAX [5.2.2-B1]
User can register in 2 ways (based on theme used):
- via standalone registration page without real-time (via AJAX) entered data validation
- via registration form in a modal window
In case of standalone registration the template, shown after user is registered can be configured via "next_template" hidden field.
Unfortunately the "next_template" hidden field value is totally ignored, when registration happens in modal window and page is just reloaded after user is registered.
Solution
- don't specify "do_refresh" parameter in the "OnRegisterAjax" event
- specify "do_refresh" parameter in the "before_close" callback during registration form, shown in modal window, configuration