xref: /aosp_15_r20/external/pdfium/testing/resources/javascript/xfa_specific/bug_980116.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        <value>
34          <text>Employee</text>
35        </value>
36      </field>
37    </subform>
38    <traversal>
39        <traverse operation="first" ref="$xfa.(eval('xfa.host.setFocus(field_DropDownList1); xfa.template.remerge(); xfa.host.openList(field_DropDownList1);') == 0)"/>
40    </traversal>
41    <event activity="docReady">
42      <script contentType="application/x-javascript">
43        field_DropDownList1 = xfa.resolveNode("xfa.form..DropDownList1");
44        field_DropDownList2 = xfa.resolveNode("xfa.form..DropDownList2");
45        xfa.host.setFocus(field_DropDownList2);
46      </script>
47    </event>
48  </subform>
49</template>
50endstream
51endobj
52{{include ../../xfa_locale_6_0.fragment}}
53{{include ../../xfa_postamble_7_0.fragment}}
54{{include ../../xfa_pages_8_0.fragment}}
55{{xref}}
56{{trailer}}
57{{startxref}}
58%%EOF
59