Skip to main content
Participating Frequently
Nov 19, 2019 5:14 PM UTC
Answered

Help a newbie simple edit a file.

I'm sure there is a very simple explanation for this. Our business uses a Bill of Sale in pdf format for all of our dealings, recently its come to my attention there is a single line that is off in the calculation, and all I need to do is add one more field to the total cost calulation, but anytime I make ANY change to the file and save it, it no longer populates the Total amount of sale. I was making a simple javascript addition to the text box, to make sure it adds the sum of 6 different text box's to my total cost. But as soon as I add the +text field130 to the existing script then save, my last text field "total cost" no longer populates.

I even tried just changing a random letter in the file and then changing it back to what it was, just so i could save the file. Once I did that, it still no longer populated.

 

Help?

This topic is closed to new replies. Start a new post to keep the conversation going.
Bernd Alheit
Bernd AlheitCorrect answer
Community Expert
Nov 19, 2019 9:19 PM UTC

Text Field123+Text Field124+Text Field125+Text Field126+Text Field127-Text Field128 ------Is the script thats already there and working fine. But as soon as I add +Text Field130 to the script, it no longer populates my total cost.


For the spaces in the field names you must use \ .

E.g. Text\ Field123

10 replies

Bernd Alheit
Community Expert
Community Expert
Nov 19, 2019 5:49 PM UTC

What script does you use?

Translate
Participating Frequently
Nov 19, 2019 6:28 PM UTC

"Simplified field notation" it's an option on the "calculate" tab under text field properties. It's just simple Javascript.

Translate
Participating Frequently
Nov 19, 2019 6:35 PM UTC

Text Field123+Text Field124+Text Field125+Text Field126+Text Field127-Text Field128 ------Is the script thats already there and working fine. But as soon as I add +Text Field130 to the script, it no longer populates my total cost.

Translate