Answered
My calculation works great, BUT when I clear the form, I get and "Undefined" in one field and and "Off" in the other. Here's the framework of the problem:
Radio buttons:
( ) Standard Membership [i]Export Value "145:25"[/i]
( ) Education Membership [i]Export Value "75:0"[/i]
( ) Student Membership [i]Export Value "35:0"[/i]
( ) Government Membership [i]Export Value "75:0"[/i]
Application Fee: __[u]undefined[/u]__
var mem_class = this.getField("Membership Classification").value; // split Membership Classification value var app_fee = mem_class.split(":"); this.getField("Application Fee").value = app_fee[1];
Membership Dues: __[u]Off[/u]__
var mem_class = this.getField("Membership Classification").value; // split Membership Classification value var mem_dues = mem_class.split(":"); this.getField("Membership Dues").value = mem_dues[0];
Total _____ [i]adds App Fee and Mem Dues[/i]
How do I get rid of "undefined" and "Off" and have the field blank until a radio button is selected?
Similarly, the other could be:
I hope this makes sense.
George