Print Page | Close Window

combo box is not validating by nitro pro 8

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: What's wrong with my PDF?
Forum Description: Having problems with a PDF document? Here's the place to post it.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=3989
Printed Date: 21 Oct 2019 at 11:53pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: combo box is not validating by nitro pro 8
Posted By: infomamun
Subject: combo box is not validating by nitro pro 8
Date Posted: 24 Jun 2018 at 11:40am
uploads/3561/pdfByNitro.pdf - uploads/3561/pdfByNitro.pdf

Hi there,
The above sample file is a simple pdf file which has only one combo box (drop down menu). What I intend to do, default color of this drop down menu will be white. But when an user will select "One", it will become green in color, if select "Two" it will be yellow and if "Three" it will be red. I have put the following validating script in the form:

var f = event.target;    
var fv = event.value;

if (fv == "One") {
    f.fillColor = color.green;
}
else if (fv == "Two") {
    f.fillColor = color.yellow;
}
else if (fv == "Three") {
    f.fillColor = color.red;
}
else {
    f.fillColor = color.white;
}
It is created in Nitro Pro 8 version. However, although it is working well in Adobe Acrobat but it's color is not changing in Nitro itself. I have tested it both by turn off and on of Highlight Form Field option. It is also not happening if opened by google chrome buil-in pdf viewer.

Would someone download and check why this is occurring in Nitro Pro 8?

Any help will be appreciated.




Print Page | Close Window

Forum Software by Web Wiz Forums® version 11.10 - http://www.webwizforums.com
Copyright ©2001-2017 Web Wiz Ltd. - https://www.webwiz.net