Skip to main content
Inspiring
July 11, 2023
Question

PDF form w/combo box, exporting to text box, value not updating

  • July 11, 2023
  • 1 reply
  • 875 views

I'm using a combo box to select different tiers of shipping methods, the export value is the cost of shipping and being populated in a text box. The text boxes Sub_Total, Shipping, and Total_Tax are summed up on the Total line. When one shipping tier is selected the script below works as it should, showing the correct export value in the shipping box. However, if a different tier of shipping is selected the total line does not update with the new shipping cost. I'm not sure how to fix the issue, any help would be appreciated.

 

var Shipping=this.getField("Combo Box0").value;

event.value=Shipping;

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 11, 2023

If the export value is set for that option, then it should update. Make sure you tick the check-box to commit the selected value immediately, though, under the drop-down's Properties, Options tab, or you would have to exit the field for the selection to "take hold" and the calculation script to execute.

glazed01Author
Inspiring
July 11, 2023

Thank you. I believe I found the issue. I had to remove the auto calculation on the Total line and reorder the calculation to get the shipping total to update. Weird issue. Thank you for your help!

try67
Community Expert
Community Expert
July 11, 2023

The issue is the fields calculation order. When you removed the calculation and re-applied it it placed the total field at the bottom of the list, where it should have been.