Answer the question
In order to leave comments, you need to log in
How to submit registration form after abort?
Good afternoon. There is a custom template for the main.register component, it has
<input type="submit" name="register_submit_button">
. If you click on it, the form is sent and there are results of the filled fields. However, I need to perform an action before submitting the form. I change the type of the input to "button", and in js I create a handler when it is clicked. After executing the necessary code, I call form.submit() - the page is updated, but no results are displayed, and the form is not submitted. In init.php, the OnBeforeUserRegister event is not even handled. How can I submit the form after executing my code?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question