Delete repeat section values on change in dropdown

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

Delete repeat section values on change in dropdown

gaurav703
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
|

Re: Delete repeat section values on change in dropdown

gaurav703
This post was updated on .
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
|

Re: Delete repeat section values on change in dropdown

Alessandro  Vernet
Administrator
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