Skip to main content
Known Participant
July 24, 2017
Question

need help with a button that would delete an amount, then to show it again?

  • July 24, 2017
  • 1 reply
  • 627 views

Hello all, what I need with is a javascript button that will enable me to click it and the result will remove the amount from the calculation, click it again and the amount that was removed will be added again.

Let me explain what I'm trying to do. I am creating a form that shows the total of material costs, then adds a percentage markup to the material costs from a drop down. Then I have a field to select the labor for the job. I'd like to have a button to remove the labor to see only the material costs by itself. Then click the button again and the labor total would be added once again without having to re-type it in. Would someone have a javascript that would help me do what I want? I hope it can be done. Thanks.

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 24, 2017

I would use a check-box, and a custom calculation script to add the value to the total when it is ticked, or not add it when it isn't.

pdfUser1Author
Known Participant
July 24, 2017

but how would I do that? I don't know the scripting to add to the custom calculation. And then how would I redo and then show the amounts that I turned off to get the grand total again? It would be a great help if you could help me with the script? Thanks.

try67
Community Expert
Community Expert
July 24, 2017

How are you currently calculating the total?