We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.
My goal is to create a fillable contract through Adobe Acrobat that can calculate costs based on hidden variables. For example if someone selected 50 united inches from a dropdown, there is a variable in the backround saying it's $1 per 1 united inch, so that is $50 for 50 united inches and spits that out into the total cost. Is there a way to do this?
I hope this makes sense.
Thank you for the resources you provided.
After thinking a little more about this, anohter thing you can do is to add an "export value" to your dropdown value items: A dropdown control can have two different sets of values associated with it: The display values, and the corresponding export value. The display value would be what you want your users to see, and the export value would be the unit price. So let's say you have a control that is named "product", and a second field named "amount", and a third field called "lineTotal", you could configure the 'lineTotal" field to calculate the product of the hidden export value and the amount. This can be done using any of the calculation methods on the "Calcuate" tab. For the simple method, you just select to create a product, and then select the two related fields. For the simple field notation, you would enter the following:
amount * product
If you have multipe lines, you can then also add a final "total" field at the end that is the sum of all the line totals. For this, you would need to create a naming schema that allows you to add a line number to your field names (e.g. amount.1 and product.1 will result in lineTotal.1, amount.2 and product.2 will result in lineTotal.2 and so on).
Thank you Karl, I will try out this method first once I construct everything and see how it goes. I appreciate your thought out response.