Open barry-luijten opened 7 years ago
@barry-luijten I have tonne of work in motion on BoltForms at the moment, but a number of conflicting deadlines … but will try soon … just only so many hours in the day to get there :smile:
I understand, no worries, the _ajax.twig hack works for me for the time being ;) Thanks!
I'm currently using the master branch of BoltForms because I need the Ajax submit functionality. When the form is not completed or does not pass validity checks, the form is rerendered, but the ReCaptcha is not. I have tried to solve this by appending this to the success function of the postForm function (in _ajax.twig):
This is of course not the most elegant solution, since the Recaptcha is also re-initialized when it was "checked" successfully, but one of the other fields were not (so it has to be re-checked again). I can't come up with another another solution without dissecting the entire BoltForms source code (which is mostly uncharted territory for me ;), so some help will be appreciated! Thanks in advance!