Hi,
I need to impement a form were the user can select from different currencies, whereupon the values in the fields are recalculated depending on the choice.
concretely:
a field: specified_price, "specify price:"
dropdownmenu: currency, "specify currency:" (USD/EUR/CHF etc.)
an unchangeable field/formula box: price_in_CHF, "price in CHF"
so when the currency is changed the "specify price"-field value should be multiplied with a factor to obtain the price in CHF. clearly, those factors (exchange rates) need to be specified somewhere and my question is where/how. I've tried using unchangable data-fields with standard values within the form template, but then wasn't able to implement the calculation. The problem is, I need to have the rates in some kind of repeating data-source form to perform (something like):
price_in_CHF = (exchange_rate where currency_name=currency) * specified_pice ...
So next, i tried having the exchange rates in an external XML file, which worked, but it is rather troublesome to change the values like this (the xml file needs to be imported anew every time). The rates don't have to be changeable quickly, i was told that they just want to be able to adapt them once or twice a year, so they told me they could do it by changeing something in the infopath-template.
Anyone got some suggestions how to implement this conveniently?
Regards,
Fabian