Print Page | Close Window

Drop down box not returning correct cal

Printed From: Foxit's Planet PDF Forum
Category: Lets Talk PDF
Forum Name: JavaScript
Forum Description: Discussions relating to the use of JavaScript within PDF.
URL: http://forums.planetpdf.com/forum_posts.asp?TID=2002
Printed Date: 25 Apr 2019 at 1:03pm
Software Version: Web Wiz Forums 11.10 - http://www.webwizforums.com


Topic: Drop down box not returning correct cal
Posted By: BOBBYM89
Subject: Drop down box not returning correct cal
Date Posted: 17 May 2016 at 4:01pm
HI Everyone,

I need some urgent help with my script.

I have two drop down boxes

topmostSubform.Page1.BUDGETCATDROPDOWN::change - (JavaScript, client)

if (this.resolveNode("BUDGETCOUNTRYDROP").rawValue == "ALBANIA" || this.resolveNode("BUDGETCOUNTRYDROP").rawValue == "BAHRAIN" && $.boundItem(xfa.event.newText) == "C1") {
this.resolveNode("shippingtotal").rawValue = this.resolveNode("#subform[1].BUDGETTABLE.C1.V").rawValue;
}



topmostSubform.Page1.BUDGETCOUNTRYDROP::change - (JavaScript, client)

if ($.boundItem(xfa.event.newText) == "ALBANIA" || $.boundItem(xfa.event.newText) == "BAHRAIN" && this.resolveNode("BUDGETCATDROPDOWN").rawValue == "C1") {
this.resolveNode("shippingtotal").rawValue = this.resolveNode("#subform[1].BUDGETTABLE.C1.C").rawValue;
}



for some reason it keeps returning a shipping figure from "BUDGETTABLE.C1.C"" without the selection of "C1" to be defined. Any Ideas why its doing that?

I'm using Live cycle

thanks,
Bobby



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