Calculation depending on drop down list item selected
- September 26, 2022
- 1 reply
- 3905 views
Hi There,
Would somebody be able to provide some assistance with a calculation, please? I'm not familiar with Javascript and I suspect this is what is required.
I have a dropdown list on a form which I have created in Adobe Acrobat Pro. I would like to run different calculations depending on which item is selected from the list.
Some of the items on the dropdown list will need to be calculated per week and shown as a monthly value, whilst others will be simply QTY* Unit=cost.
My calculation to get the monthly value for a weekly charged product works, which is QTY* Units*52.1429/12. This gives me the monthly cost for a product that is charged weekly, which is great.
However, I need to specify that this calculation should only be applied if the weekly product was selected from the dropdown list.
My basic logic would be:
if (Dropdown list item="weekly product") then execute QTY* Units*52.1429/12
else execute QTY* Units.
I hope I've explained this clearly enough.
Many Thanks,
Simon
