// Set the value of the LTtotal1 field based on selection
var LTtotal1 = 0.00;
if(this.getField("LogoText1").value == "Logo") LTtotal1 = this.getField("LogoFee").value;
if(this.getField("LogoText1").value == "Text") LTtotal1 = this.getField("TextFee").value;
LTtotal1 = 0.00;
As I execute the form, I get a delayed setting of the variable - it only sets a value for LTtotal1 when I return to the field and select a different value. Yes, I am advancing fields with tab. I am at a loss on how to make this work.
Your script should not work at all as you've placed the variable on the left side of the assignment operator and the field object on the right. It needs to be the other way around.
Regarding the delay, it happens because you're not using the correct object. To access the new value in a validation script you need to use event.value, not access the field using getField and the value property..
Thank you Try67. event.value was the right correction to make. Variable on left side of the assignment works.