Previous | Next | (P-PDF) Beginners
Topic: Re: Reset only one field
Conf: (P-PDF) Beginners, Msg: 23340
From: lpetroni
Date: 7/3/2001 12:53 PM
Hi Michel:
I believe that you could use the setItems( ) Field
method (see the JavaScript Object Specification
Acrobat 4.05 Manual page 50).
Note that with this you will need to work with a array
of values (the ones you see in the list and the ones
that are exported) and that all the list values will be
replaced.
lpetroni
compasso arte design
On 7/3/2001 11:37:00 AM, lehouxmichel wrote:
>thanks for your help but I
>can't use it in a listbox. In
>a text zone it's ok but in a
>list box, the value doesn't
>change with your tip.
>
>a = this.getField("nbre_ess");
>b = this.getField("Type(s)
>v? 1");
>
>
>if ((a.value == "2")&&(b.value
>== "TR"))
>{
>app."Avec une configuration de
>2 essieux, choissiez CA, VO ou
>GR.","1")
> b.value = b.defaultValue ;
>}
>
>(this is my code)