I can change it to rawValue in your form, without any issues.Also, your total amount is showing up in cell6 of the footer row, then why you are running the script on cell5?Besides, you have already set the value of cell6 through data binding as shown below. That's why it is not working on your form....