How to fill in a dropbox from a repeatable section

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

How to fill in a dropbox from a repeatable section

pouyan

My form is wizard view and I would like to fill in a drop box with following senario

I have repeatable section contians two edit boxes

----Repeatable section----
Name:
Amount:
--------------------------


Then I have a drop box in next page
I would like to fill in the drop box wih all the names
created in repeatable section (above)

All names:-------=
Reply | Threaded
Open this post in threaded view
|

Re: How to fill in a dropbox from a repeatable section

Alessandro  Vernet
Administrator
Hi Pouyan,

Unfortunately, you can't do this without changing the source of the form manually, changing the <xf:itemset> element to get the values from something that was filled in the form previously, e.g.:

<xf:itemset ref="/form/children/child/child-iteration/first-name">
    <xf:label ref="."/>
    <xf:value ref="."/>
</xf:itemset>

See a full example that you can paste in Form Builder to test this out: https://gist.github.com/avernet/6fe0fead6ac77e980a76

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet