Page 1 of 1

Change currency of currency field

Posted: 07 May 2015
by Phoenix
Hi there

Is it possible to change the preset currency i.e. Euro of the currency dynamically accroding to the selection of another field i.e. country?


Thanks

Re: Change currency of currency field

Posted: 08 May 2015
by Dmitry Kozlov
Hi,

I'd recommend to use a number field instead and specify the currency in its title dynamically based on the selection, say, this way:

Code: Select all

fd.field('Country').change(function() {
	if (fd.field('Country').value() == 'USA') {
		fd.field('Number').titleText('Total (USD)');
	} else {
		fd.field('Number').titleText('Total (EUR)');
	}
});

Re: Change currency of currency field

Posted: 20 May 2015
by Phoenix
Thanks, I will try that