summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/interactiveworkbook/epsfiles/fieldclear.eps
blob: 1874860c12debefd6081a895f784857e452b2237 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
%  CLEAR TEXT FIELD BUTTON
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%!PS-Adobe-3.0 EPSF-3.0
%%BoundingBox: 0 0 90 30
%%EndProlog
[
    /T (Text_Field_Clear_Button)
    /Rect [0 0 90 30]
    /Subtype /Widget
    /F 4
    /FT /Btn
    /Ff 65540
    /H /P % displays down position momentarily
    /AP << /N {Clear_Up} /D {Clear_Down} >> % clear text in all fields
    /Action <<
        /Subtype /JavaScript
        /JS(
            var undefined;
            function clearField\(inName\) {
                var theField = this.getField\(inName\);
                if \( theField != undefined \) theField.value = "";
            }

            for \(theCount = 1; theCount < 6; theCount++\) {
                if \( "pageonefield"+theCount != undefined \) clearField\("pageonefield"+theCount\);
            }

        )
    >>
/ANN pdfmark
%%EOF