xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_980161.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 layout="tb" locale="en_US" name="form1" restoreState="auto">
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">
19      <field h="3mm" name="DropDownList1" w="3mm" x="0mm" y="1mm">
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="500.0001mm" name="DropDownList2" w="500.625mm" x="0mm" y="0mm">
30        <ui>
31          <textEdit></textEdit>
32        </ui>
33        <traversal>
34          <traverse operation="next" ref="$xfa.(eval('xfa.host.setFocus(field_DropDownList1); xfa.template.remerge(); xfa.host.openList(field_DropDownList1);') == 0)"/>
35        </traversal>
36      </field>
37    </subform>
38    <event activity="docReady">
39      <script contentType="application/x-javascript">
40        field_DropDownList1 = xfa.resolveNode("xfa.form..DropDownList1");
41        field_DropDownList2 = xfa.resolveNode("xfa.form..DropDownList2");
42        xfa.host.setFocus(field_DropDownList2);
43      </script>
44    </event>
45  </subform>
46</template>
47endstream
48endobj
49{{include ../../xfa_locale_6_0.fragment}}
50{{include ../../xfa_postamble_7_0.fragment}}
51{{include ../../xfa_pages_8_0.fragment}}
52{{xref}}
53{{trailer}}
54{{startxref}}
55%%EOF
56