I have multiple forms on page that use V3 validation. The issue is, that for every form, the widget outputs <script> which contains globally defined variables such as grecaptchaInput or grecaptchaForm which are being overwritten with each new form in page.
The solution is either use local vars, such as let or const or add random prefix to them when generating the widget script.
I have multiple forms on page that use V3 validation. The issue is, that for every form, the widget outputs
<script>
which contains globally defined variables such asgrecaptchaInput
orgrecaptchaForm
which are being overwritten with each new form in page.The solution is either use local vars, such as
let
orconst
or add random prefix to them when generating the widget script.