These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

problem w/ 2 scripts working together....

oksana77
Registered: Apr 24 2009
Posts: 89

//1-script: making last page invisible on pre-print
if(form1.Masters.page3.Print.rawValue == 1)
form1.page3.presence = "visible";
else
form1.page3.presence = "hidden";

//2-script: changing fields color to black on pre-print
Scripts.changeFont(this, "black");

This form uses multiple master pages and allows form to grow via add page button. Any idea why the two scripts don't work together?

My Product Information:
LiveCycle Designer, Windows
suewhitehead
Registered: Jun 3 2008
Posts: 232
Have you tried it something like this?
//1-script: making last page invisible on pre-print

if(form1.Masters.page3.Print.rawValue == 1)
form1.page3.presence = "visible";
//2-script: changing fields color to black on pre-print
Scripts.changeFont(this, "black");

else
form1.page3.presence = "hidden";
oksana77
Registered: Apr 24 2009
Posts: 89
Yes. I get " Software Failure" error....The only fields that do not change color are located on a Master page. Actually they indicate that the color has changed to black "0,0,0" but the fields are blue, no joke... There is something in between making it visible and having multiple Master pages... It really doesn't make any sense to me because it is a very simple script.