Hi!
I'm struggling to make reCAPTCHA work in my form. I'm using ORBEON 2018.2.3.201905172253 PE within SAP Commerce (Hybris) Created a common Form and added reCAPTCHA as per official Orbeon documentation: https://doc.orbeon.com/form-runner/component/captcha - Added my private and public keys to the properties file - Added the reCAPTCHA property to my form: <property as="xs:string" name="oxf.fr.detail.captcha.yforms.myForm" value="reCAPTCHA"/> - This is the process executed when clicking the SUBMIT button: <property as="xs:string" name="oxf.fr.detail.process.save-final.yforms.myForm"> - I see the reCAPTCHA at the bottom of my form as expected - When I click SUBMIT after filling up the form and completing the captcha successfully, I see this error: So I'm clearly missing something. I know there are some configurations needed for the fr-verify-done and fr-verify-error to be added, but the Orbeon documentation does not specify how to configure those through PROPERTIES. They only say how to add those event listeners while adding the captcha component by hand (editing the source code of the form through Form Builder). Things that I tried and didn't work: 1. Dispatching an fr-verify event when submitting: <property as="xs:string" name="oxf.fr.detail.process.save-final.yforms.myForm"> xf:dispatch(name = "fr-verify", targetid = "captcha")then validate-all 2. Adding the reCAPTCHA component to the form source code as per Orbeon documentation: <fr:recaptcha id="my-captcha">
</fr:recaptcha> When I click SAVE after adding the excerpt above, the Form Builder crashes. Same happens if I try to add the same excerpt to a form through the online demo form builder provided by Orbeon : https://demo.orbeon.com/demo/fr/orbeon/builder/new That is super weird since I'm adding code provided by them using the online last version of the form builder, and it still crashes when trying to save it. So that makes me think the problem I have is not related to my platform, but with Orbeon itself. This is the error I get in the online demo for Form Builder after adding the recaptcha excerpt to the source code of the form: There're no relevant LOGS that I can provide, I activated debug level logs for Orbeon and I'm not getting any useful info. I would really appreciate if someone can guide me through with either: - Configuring the fr-verify events without changing the source code of the form using Form Builder, OR - Adding the reCAPTCHA component through Form Builder successfully without making it crash, OR - Anything you can come up with to make my form with captcha work Thanks in advance, David Disclaimer: The information in this email including any attachments is confidential and the legal property of the sender. If you are not the intended recipient, any disclosure, copying, distribution or other action taken on it is prohibited. If you have received this email in error, please notify the sender immediately by telephone. Please also delete the message from your computer. Thank you
-- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To post to this group, send email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/475911c5-9409-491d-a6ba-4903c0afd48b%40googlegroups.com. |
Administrator
|
Hi David,
I replied to your question on Stack Overflow by posting a comment there. Feel free to follow-up there, or here, whatever is the most convenient for you. https://stackoverflow.com/questions/57104729 ‑Alex ----- -- Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet -- Sent from: http://discuss.orbeon.com/ -- You received this message because you are subscribed to the Google Groups "Orbeon Forms" group. To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email]. To view this discussion on the web visit https://groups.google.com/d/msgid/orbeon/1563602035569-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon Follow me on Twitter: @avernet |
Free forum by Nabble | Edit this page |