Expand my Community achievements bar.

print button needs two different instances

Avatar

Former Community Member
I have a ticket order form that I have designed. I am using formcalc to handle the different ticket prices (3 different prices) and an additional line that contains a required $2 handling fee. After that, there is a line for grand total which tallies the 3 different ticket prices and the handling fee.



So far it seems straight forward.



The problem is that I want the form to be able to be a blank printable form as well so that someone can print it out and fill it out the old fashion way. That would require the grand total to be blank which is not the case with the manditory $2 handling fee included in the formcalc.



I've tried a variety of scripts without success. basically I want to have

javascript that says if the subtotal(tickets only) <= "0" then don't print anything in the grandtotal (which contains the subtotal and the $2 handling). I want the $2 to dissapear.



Any suggestions would be appreciated!



Let me know if you need more details or if you need to see the form.

Thanks!
1 Reply

Avatar

Level 7
You can set the fields to a null value or hide them before executing the print command.