Login  Register

Delete repeat section values on change in dropdown

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

Delete repeat section values on change in dropdown

gaurav703
2 posts
Hi,

How is possible to delete section values which are in repeat section, when a
dropdown inside that section has changed?


For example, I have a dropdown and a set of controls in a repeat section.
So when the dropdown value is changed then all values of the section should
be cleared.

I use this action:

*/<xf:action event="xforms-value-changed">
        <xf:setvalue ref="//*/section-1/field-1" value=""/>
        <xf:setvalue ref="//*/section-1/field-2" value=""/>
</xf:action>/*


But it works for the only first section.
Could anybody please help me with this?

--
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 post to this group, send email to [hidden email].
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Delete repeat section values on change in dropdown

gaurav703
2 posts
This post was updated on Nov 28, 2018; 11:57pm.
Worked for us using the following:

<xf:action event="xforms-value-changed">
    <xf:setvalue ref="..//section-1/field-1" value="''"/>
    <xf:setvalue ref="..//section-1/field-2" value="''"/>
</xf:action>

--
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 orbeon+unsubscribe@googlegroups.com.
To post to this group, send email to orbeon@googlegroups.com.
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Re: Delete repeat section values on change in dropdown

Alessandro  Vernet
Administrator
5128 posts
In reply to this post by gaurav703
Exactly Gaurav, and I'm glad you found the solution yourself.

‑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 post to this group, send email to [hidden email].
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet