-
1. Re: Preserve Script Changes for Drop-down
Varma_LC Jun 22, 2011 1:31 PM (in response to meem23)I tried your code with Acrobat 9 and it saves the color and the value...
However if it does not work I would look in to alternative methods to force it to run the same script with minor changes at the time of docReady/formReady to make it look like it saved the color....
switch
(this.rawValue)
{
case
"Green":
this.ui.choiceList.border.fill.color.value
= "0,128,0";
break
;
case
"Yellow":
this.ui.choiceList.border.fill.color.value
= "255,255,0";
break
;
case
"Red":
this.ui.choiceList.border.fill.color.value
= "255,0,0";
break
;
case
" ":
this.ui.choiceList.border.fill.color.value
= "255,255,255";
break
;
}
Good luck,
-
2. Re: Preserve Script Changes for Drop-down
Bibhu Bikash Nayak Jun 22, 2011 9:37 PM (in response to meem23)Hi Michelle,
Just for your reference check the following :
Click on File -> Form Properties -> Defaults -> Under Preserve scripting changes to form when saved : Click" Manually".
Thanks,
Bibhu.
-
3. Re: Preserve Script Changes for Drop-down
meem23 Jun 23, 2011 4:43 AM (in response to Bibhu Bikash Nayak)Thanks but this doesn't work for me. The version of Acrobat I'm using does not support this.
-
4. Re: Preserve Script Changes for Drop-down
meem23 Jun 23, 2011 12:46 PM (in response to Varma_LC)I figured it out, I added script to the formReady event.


