Hide 'No' responses from completed form view

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

Hide 'No' responses from completed form view

jamar.manton
I'm new to Orbeon forms using version Orbeon Forms 2018.1.2.201810050007 PE.I have had to create an eForm that is very long, made up of predominantly Yes/No selection controls. I want users to be able to hide all the 'No' responses to all Yes/No controls in each form section so that the saved version of the form is not so long. Only the Yes responses are required to be viewed on the completed form and there isn't usually many of them. Is this possible?

Thanks,

Regards
Jamian

--
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/07e9f039-9d53-47e7-a80f-de4a9ab704db%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Hide 'No' responses from completed form view

Jarosław Kowalewski
Hi,
you can try to use formula in the visibility element something like that :
not(fr:mode() = 'view') or (fr:mode() = 'view' and . = 'Yes')

ref
 

Let me know if it works.

//Jarek

pt., 17 sty 2020 o 19:04 <[hidden email]> napisał(a):
I'm new to Orbeon forms using version Orbeon Forms 2018.1.2.201810050007 PE.I have had to create an eForm that is very long, made up of predominantly Yes/No selection controls. I want users to be able to hide all the 'No' responses to all Yes/No controls in each form section so that the saved version of the form is not so long. Only the Yes responses are required to be viewed on the completed form and there isn't usually many of them. Is this possible?

Thanks,

Regards
Jamian

--
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/07e9f039-9d53-47e7-a80f-de4a9ab704db%40googlegroups.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/CAHFpwcVEHS%3DRE0YCTxgodcfnD6UXYR_xTS%2B%2B%3Df6Q31cU7hwdRQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Hide 'No' responses from completed form view

Alessandro  Vernet
Administrator
In reply to this post by jamar.manton
Hi Jamian, did you get a chance to try Jarek's suggestion of using the
Visibility for this? If so, did it work 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/1580149992217-0.post%40n4.nabble.com.
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: Hide 'No' responses from completed form view

jamar.manton
In reply to this post by Jarosław Kowalewski
Hi Jarek,

Apologies for the delay in responding, I have been on leave.

Thank you, yes this works as expected. I altered the code to suit a Yes/No control:
not(fr:mode() = 'view') or (fr:mode() = 'view' and ./string() = 'true'

Thanks again!

Cheers
Jamian

On Tuesday, January 21, 2020 at 2:23:13 AM UTC+11, Jarek wrote:
Hi,
you can try to use formula in the visibility element something like that :
not(fr:mode() = 'view') or (fr:mode() = 'view' and . = 'Yes')

ref
<a href="https://doc.orbeon.com/form-builder/formulas/formulas-examples#check-the-form-runner-mode" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fform-builder%2Fformulas%2Fformulas-examples%23check-the-form-runner-mode\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFhEQyV2fOLjd4odrnGxxbRlfr0Fw&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fform-builder%2Fformulas%2Fformulas-examples%23check-the-form-runner-mode\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFhEQyV2fOLjd4odrnGxxbRlfr0Fw&#39;;return true;">https://doc.orbeon.com/form-builder/formulas/formulas-examples#check-the-form-runner-mode  
<a href="https://doc.orbeon.com/xforms/xpath/extension-functions/extension-form-runner#fr-mode" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fxforms%2Fxpath%2Fextension-functions%2Fextension-form-runner%23fr-mode\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXUSFDq17R6EeHby8SvA150k7v2w&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fdoc.orbeon.com%2Fxforms%2Fxpath%2Fextension-functions%2Fextension-form-runner%23fr-mode\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNEXUSFDq17R6EeHby8SvA150k7v2w&#39;;return true;">https://doc.orbeon.com/xforms/xpath/extension-functions/extension-form-runner#fr-mode 
 

Let me know if it works.

//Jarek

pt., 17 sty 2020 o 19:04 <<a href="javascript:" target="_blank" gdf-obfuscated-mailto="kcx1UKbEDAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jamar...@...> napisał(a):
I'm new to Orbeon forms using version Orbeon Forms 2018.1.2.201810050007 PE.I have had to create an eForm that is very long, made up of predominantly Yes/No selection controls. I want users to be able to hide all the 'No' responses to all Yes/No controls in each form section so that the saved version of the form is not so long. Only the Yes responses are required to be viewed on the completed form and there isn't usually many of them. Is this possible?

Thanks,

Regards
Jamian

--
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 <a href="javascript:" target="_blank" gdf-obfuscated-mailto="kcx1UKbEDAAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">orb...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/orbeon/07e9f039-9d53-47e7-a80f-de4a9ab704db%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/orbeon/07e9f039-9d53-47e7-a80f-de4a9ab704db%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/orbeon/07e9f039-9d53-47e7-a80f-de4a9ab704db%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/orbeon/07e9f039-9d53-47e7-a80f-de4a9ab704db%40googlegroups.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/74c7286e-bc10-4205-8832-27f700b53c45%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Hide 'No' responses from completed form view

Alessandro  Vernet
Administrator
Perfect Jamian, thank you for the confirmation, and thank you Jarek for the
tip!

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