recaptcha in wizard mode

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

recaptcha in wizard mode

mbojja
Hi Alex - Continuation to the question here - https://stackoverflow.com/questions/50759357/using-captcha-on-orbeon-form

I have a multipage/multisection form and need the captcha on the top section/first page of the form and once verified, form runner must show the rest of the sections.

 Placing captcha under the first section <fr:section1> brings it to the top anyway.

<fr:recaptcha id="my-simple-captcha">
                        <xf:send event="fr-verify-done" submission="save-submission"/>
                        <xf:action event="fr-verify-error">
                            <xf:toggle case="failure-case"/>
                            <xf:dispatch target="my-simple-captcha" name="fr-reload"/>
                        </xf:action>
                    </fr:recaptcha>

Is it possible to use a visibility rule (fr-verify-done = 'true') on the other sections as they must be visible one when captcha is verified.


Thanks

--
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/340a42c6-df4e-40f2-99b5-5fda09b1eb68%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: recaptcha in wizard mode

Alessandro  Vernet
Administrator
Hi Manish,

The thing is that the `<fr:recaptcha>` isn't designed to be used as a
control, and added to a form. (This is also why it isn't shown with other
controls in the toolbar.) You could imagine creating an XBL control, which
uses the `<fr:recaptcha>`, and stores as its value whether the captcha has
been solved. Its value would be `false` to start with, and change to `true`
when the captcha has been solved. With this you could decide to hide/show
sections of the form depending on that state.

But right now, for forms you create with Form Builder, you can only enable
the reCAPTCHA with:

  <property
      as="xs:string"
      name="oxf.fr.detail.captcha.*.*"
      value="reCAPTCHA"/>

Would just using that property work for you (even if the reCAPTCHA doesn't
show exactly the way you described)?

‑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/1575679260599-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: recaptcha in wizard mode

Alessandro  Vernet
Administrator
Hi Manish, have you tried setting the `oxf.fr.detail.captcha.*.*` to just
have Form Runner take care of showing the reCAPTCHA before users can submit
data, as suggested in my previous message? If so, is that something that
works for you?

‑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/1576260129921-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet