xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_1069700.in (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1{{header}}
2{{include ../../xfa_catalog_1_0.fragment}}
3{{include ../../xfa_object_2_0.fragment}}
4{{include ../../xfa_preamble_3_0.fragment}}
5{{include ../../xfa_config_4_0.fragment}}
6{{object 5 0}} <<
7  {{streamlen}}
8>>
9stream
10<template xmlns="http://www.xfa.org/schema/xfa-template/2.6/">
11  <subform name="form1">
12    <pageSet>
13      <pageArea id="Page1" name="Page1">
14        <contentArea h="10.5in" w="8in" x="0.25in" y="0.25in"/>
15        <medium long="11in" short="8.5in" stock="letter"/>
16      </pageArea>
17    </pageSet>
18    <subform h="10.5in" w="8in" name="subform2">
19      <field h="10mm" name="DropDownList1" w="10mm" x="0mm" y="20mm">
20        <ui>
21          <choiceList/>
22        </ui>
23        <items save="1">
24          <text>Single</text>
25          <text>Married</text>
26          <text>Other</text>
27        </items>
28      </field>
29      <field h="200mm" name="DropDownList2" w="2mm" x="0mm" y="30mm">
30        <ui>
31          <textEdit/>
32       </ui>
33      </field>
34      <subform name="subform3" x="0mm" y="5mm">
35        <occur max="-1"/>
36        <traversal>
37          <traverse operation="next" ref="$xfa.(eval('try { if (aaaa == 1) {bb();} } catch(e){}') == 0)"/>
38        </traversal>
39      </subform>
40      <bookend leader="$"/>
41      <keep intact="none" previous="contentArea"/>
42    </subform>
43    <subform name="subform4" x="0mm">
44      <occur max="-1"/>
45      <field name="choiceList3" minH="32in">
46        <ui>
47          <choiceList/>
48        </ui>
49      </field>
50    </subform>
51    <event activity="docReady">
52      <script contentType="application/x-javascript">
53        aaaa = 1;
54        bb = function() {
55          xfa.host.setFocus(f1);
56          d = xfa.resolveNode("xfa.form..subform4");
57          d.instanceManager.addInstance(1);
58          xfa.host.openList(f1);
59        }
60        f1 = xfa.resolveNode("xfa.form..DropDownList1");
61      </script>
62    </event>
63  </subform>
64</template>
65endstream
66endobj
67{{include ../../xfa_locale_6_0.fragment}}
68{{include ../../xfa_postamble_7_0.fragment}}
69{{include ../../xfa_pages_8_0.fragment}}
70{{xref}}
71{{trailer}}
72{{startxref}}
73%%EOF
74