Hello, I'm working on a form to calculate total cost based on two fields - both a work order activity and quantity. There are about 50 line items on the work order, and each has a different cost associated with it. If I select A from the dropdown and type in a quantity of 2, it will reach into the code to pull the cost for A and multiply that by the quantity.
I've started the code process but I'm not sure if I'm going in the right direction:
If client selects '1. Emergency Response' and inputs a quantity of 1, multiply 1 by 750. If client selects '2....' etc. Else calculate 0/null.
if(${work_order_activity_codename_1},'1. EMERGENCY RESPONSE - EA'),int(${line_item_quantity_1}*750), if(${work_order_activity_codename_1},...etc,0))
I've attached the form spreadsheet to show what I'm talking about. Is this possible?
Thanks in advance!