JS help
Out of context: Reply #8
- Started
- Last post
- 13 Responses
- i_monk0
Hmm... I think I figured it out (mostly). PDFs have a built-in on-mouse-up action for radio buttons. So I stuck the code for "yes" on the yes button and it worked. I still have to figure out something with the "no" coding, but I think I can get it.
YES:
var N_Shortfall = this.getField("N_Shortfall").val...
var N_Rate = this.getField("N_Rate").value;
this.getField("N_Amount").value = N_Shortfall*N_Rate;NO:
var N_Shortfall = this.getField("N_Shortfall").val...
var N_Rate = this.getField("N_Rate").value;
var N_Years = this.getField("N_Years").value;
function pv(rate, years, short, fv, pd)
{
rate = N_Rate;
years = N_Years;
short = N_Shortfall;
fv = 0;
pd = 1;
}
this.getField("N_Amount").value = uhhh.....;I just have to figure out how to get that last line to execute the pv function...