blob: 1da374337e757cfaf18c7445c0adfc05054a6398 [file] [log] [blame]
Tom Sepez396e8722015-09-09 10:16:08 -07001{{header}}
2{{object 1 0}} <<
3 /Type /Catalog
4 /Pages 2 0 R
5 /OpenAction 4 0 R
6 /AcroForm 3 0 R
7>>
8endobj
9{{object 2 0}} <<
10 /Type /Pages
11 /Count 3
12 /Kids [6 0 R 7 0 R 8 0 R ]
13>>
14endobj
15{{object 3 0}} <<
16 /CO [11 0 R]
17 /Fields [11 0 R 9 0 R]
18>>
19endobj
20{{object 4 0}} <<
21 /Type /Action
22 /S /JavaScript
23 /JS 5 0 R
24>>
25endobj
26{{object 5 0}} <<>>
27stream
28var i = 0;
29function run()
30{
31 t = this.getField('txtName1');
32 t2 = this.getField('txtName2');
33 t2.setFocus();
34 t.setFocus();
35 t.value='G';
36}
37
38function remove(){
39 if (i==1){
40 this.removeField('txtName2');
41 }
42 i++;
43}
44
45app.setTimeOut('run()',2000);
46endstream
47endobj
48{{object 6 0}} <<
49 /Type /Page
50 /Parent 2 0 R
51 /MediaBox [0 0 612 792]
52 /Resources <<>>
53>>
54endobj
55{{object 7 0}} <<
56 /Type /Page
57 /Parent 2 0 R
58 /MediaBox [0 0 612 792]
59 /Resources <<>>
60>>
61endobj
62{{object 8 0}} <<
63 /Type /Page
64 /Parent 2 0 R
65 /MediaBox [0 0 612 792]
66 /Resources <<>>
67 /Annots [9 0 R 11 0 R]
68>>
69endobj
70{{object 9 0}} <<
71 /FT /Tx
72 /Type /Annot
73 /Subtype /Widget
74 /T (txtName2)
75 /F 4
76 /AP <</N 10 0 R>>
77 /Rect [20 20 400 60]
78>>
79endobj
80{{object 10 0}} <<
81 /Type /XObject
82 /Subtype /Form
83 /FormType 1
84>>
85endobj
86{{object 11 0}} <<
87 /FT /Tx
88 /Type /Annot
89 /Subtype /Widget
90 /T (txtName1)
91 /F 4
92 /AP <</N 12 0 R>>
93 /Rect [200 200 400 260]
94 /AA 13 0 R
95>>
96endobj
97{{object 12 0}} <<
98 /Type /XObject
99 /Subtype /Form
100 /FormType 1
101>>
102endobj
103{{object 13 0}} <<
104 /C 14 0 R
105>>
106endobj
107{{object 14 0}} <<
108 /Type /Action
109 /S /JavaScript
110 /JS 15 0 R
111>>
112endobj
113{{object 15 0}} <<>>
114stream
115this.getField('txtName2').value='B';
116this.pageNum=1;
117remove();
118endstream
119endobj
120{{xref}}
Lei Zhangf7d86bd2018-11-16 19:38:53 +0000121{{trailer}}
Tom Sepez396e8722015-09-09 10:16:08 -0700122{{startxref}}
123%%EOF