This topic contains 2 replies, has 2 voices, and was last updated by msalmi.kais 5 years, 12 months ago.
- Topic
hi,
I add an entity via entitymanager. and i add form in frontend.
I integrate a google re-captcha.
how to intercept the submit form (because the submit is with Ajax) to verify the validation of the captcha. here is my code:
Thanks for your help.12345678910111213$form = $this->createForm(RegisterFormType::class,$RecordEventPresence);$result = $this->get('oro_form.update_handler')->update($RecordEventPresence,$form,'Votre demande d\'inscription est enregistré avec succès.');if ($result instanceof Response) {return $result;}return ['data' => ['register_event_form' => $form->createView()]];123456789101112- @add:id: spg_scriptparentId: headblockType: scriptoptions:src: 'https://www.google.com/recaptcha/api.js'- '@addTree':items:spg_register_event_webinaire_atelier:blockType: spg_form_fieldsoptions:form: '=data["register_event_form"]'12345<div class="grid__column grid__column--4" ><div class="form-row"><div class="g-recaptcha" data-sitekey="*************************" style="float:right"></div></div></div>
The forum ‘OroCommerce’ is closed to new topics and replies.