Planet PDF Forum Planet PDF Forum
  New Posts New Posts RSS Feed - Why won't my pulldown change colors
  FAQ FAQ  Forum Search   Register Register  Login Login


Hi, welcome to the Foxit Planet PDF Forum. If you have PDF or Adobe Acrobat questions then the right place to ask them is here, in this forum.

Why won't my pulldown change colors

 Post Reply Post Reply
Author
ibbob View Drop Down
New Member
New Member


Joined: 17 Feb 2015
Location: United States
Points: 3
Post Options Post Options   Quote ibbob Quote  Post ReplyReply Direct Link To This Post Topic: Why won't my pulldown change colors
    Posted: 21 Feb 2015 at 4:47pm
Ok, I thought this one was going to be simple....

My Script RUNS, without error, but nothing happens...

I have a pulldown box, with  6 options.  When you choose an option the FILLCOLOR is supposed to change depending on your choice.  I have the following in the "Custom Calculate" tab....  Console shows it runs, the right fields are reported, but nothing happens.

What am I missing???

{
console.println("Entering colortest switch routine");
  var incomming = event.target.value;
  var Field = event.target; 
  console.println(" Incomming value chosen was: "+incomming);
  console.println(" The field we are trying to color is: "+Field.name);

  switch (incomming)
  {
  case "NA" : 
        console.println(" NA");
        Field.fillcolor = color.black;
        break;
  case "Hazzard" : 
        console.println(" Hazzard");
        Field.fillcolor = color.red;
        break;
  case "Defective" : 
        console.println(" Defective");
        Field.fillcolor = color.black;
        break;
  case "Servicable" : 
        console.println(" Servicable");
        Field.fillcolor = color.black;
        break;
  case "Marginal" : 
        console.println(" Marginal");
        Field.fillcolor = color.orange;
        break;
  case "NI" : 
        console.println(" NI");
        Field.fillcolor = color.black;
        break;

  }
}

The colsole shows

Entering colortest switch routine
 Incomming value chosen was: Servicable
 The field we are trying to color is: SectionStatus  <<this is right !
 Servicable


Back to Top
Sponsored Links


Back to Top
ibbob View Drop Down
New Member
New Member


Joined: 17 Feb 2015
Location: United States
Points: 3
Post Options Post Options   Quote ibbob Quote  Post ReplyReply Direct Link To This Post Posted: 21 Feb 2015 at 4:49pm
The console does show the changes (sorry) here is a sample run...

The Color never changes....

Entering colortest switch routine
 Incomming value chosen was: Servicable
 The field we are trying to color is: SectionStatus
 Servicable
Entering colortest switch routine
 Incomming value chosen was: Hazzard
 The field we are trying to color is: SectionStatus
 Hazzard
Entering colortest switch routine
 Incomming value chosen was: Marginal
 The field we are trying to color is: SectionStatus
 Marginal
Back to Top
BAlheit View Drop Down
Senior Member
Senior Member


Joined: 15 Jul 2011
Points: 1110
Post Options Post Options   Quote BAlheit Quote  Post ReplyReply Direct Link To This Post Posted: 22 Feb 2015 at 9:36am
The name of the property is fillColor not fillcolor.
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 11.10
Copyright ©2001-2017 Web Wiz Ltd.

This page was generated in 0.031 seconds.