Skip to main content
Known Participant
May 27, 2021
Answered

script doesnt update when gather fields change

  • May 27, 2021
  • 1 reply
  • 570 views

i have a field that gathers info from a couple of other fields and it doesnt seem to updat until i change one of the other fields twice . my filed calculation is the field that seem to have a problem is the field "tax to add" field i have to change it multiple times to get this calculation to work.

var total = Number(this.getField("TOTALPRICETODDLER").value)+Number(this.getField("TOTALPRICEYOUTH").value)+Number(this.getField("TOTALPRICESXL").value)+Number(this.getField("TOTALPRICE2XL").value)+Number(this.getField("TOTALPRICE3XL").value)+Number(this.getField("TOTALPRICE4XL").value)+Number(this.getField("TOTALPRICE5XL").value)+Number(this.getField("tax to add").value);;
if(total == 0)
event.value = "";
else event.value = total;

 

thanks

This topic has been closed for replies.
Correct answer Bernd Alheit

At Tools > Prepare Form change the field calculation order.

1 reply

Bernd Alheit
Community Expert
Bernd AlheitCommunity ExpertCorrect answer
Community Expert
May 27, 2021

At Tools > Prepare Form change the field calculation order.

fourstateAuthor
Known Participant
May 27, 2021

thanks