Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Controlling Subform Order

Avatar

Level 2

Hi, I have a form design that contains 2 subforms, SF and SF2. Can I specify the order of subform placement in

a XML data file? For example, if I want to render SF1, SF2, SF2, SF1, can I specify the order in the XML data file? I tried this:

<SF1>

     <SF1Data>Data1<SF1Data>

<SF1>

<SF2>

     <SF2Data>Data2<SF2Data>

<SF2>
<SF2>

     <SF2Data>Data3<SF2Data>

<SF2>

<SF1>

     <SF1Data>Data4<SF1Data>

<SF1>

I get SF1, SF1, SF2, SF2 rendered.

0 Replies

Avatar

Level 10

Hi,

I suspect that both SF1 and SF2 are set to repeat depending on the number of bound XML data that is being merged with the form (???)

If so then you may have difficulty. While you can move instances of a repeating object within its bounds, you cannot (afaik) get an instance of a repeating subform to appear below another/different repeating subform. If I understand you correctly you are trying to separate repeating elements, and I don;t think this can be achieved.

Good luck,

Niall

Avatar

Level 2

Yes, the subforms are set to repeat for each data item in the XML data file. If I set the subform not to repeat and use the same XML data file, I get only one instance of the each subform rendered.

Avatar

Level 10

Hi,

Here is an example of a form with two repeating subforms: https://acrobat.com/#d=tIpEHFadQtSOefZkU9EBfQ

While you can script each subform instance to move up and down, you cannot script an instance to outside of the group of instances. In other words you cannot alternate instances of SF1 with instances of SF2.

2010-11-11_18-17-41.png

Sorry,

Niall