View Single Post
Join Date: Nov 2008
Posts: 8
Reputation: trinityavatar is an unknown quantity at this point 
Solved Threads: 0
trinityavatar trinityavatar is offline Offline
Newbie Poster

Re: Return value based upon visibility of form field?

 
0
  #7
Nov 19th, 2008
I was hasty!

I was able to reset the value of the No Checkbox to 0.0, but now the Yes checkbox results is 0.0 as well... :-(

I can only over ride the reset value if I put in an absolute value.

Here's the "Yes" CheckBox...
var CollectionTotal = this.getField("CollectionTotal")
function resetField(name,value)
{
CollectionTotal.value = value;}

if (event.target.value == "Yes")
{
CollectionTotal.hidden = true
&& resetField('CollectionTotal','2800')
}
else {
CollectionTotal.hidden = false
}
Is there anyway to make this value a calculation such as:

var CollectionTotal = this.getField("CollectionTotal")
function resetField(name,value)
{
CollectionTotal.value = value;}

if (event.target.value == "Yes")
{
CollectionTotal.hidden = true
&& resetField('CollectionTotal','CollectionRate*NumPosters')
}
else {
CollectionTotal.hidden = false
}
for example?

Thank you for your patience!
Reply With Quote