Change currency of currency field

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
Phoenix
Posts: 23
Joined: Wed Dec 10, 2014

07 May 2015

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

08 May 2015

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)');
	}
});

Phoenix
Posts: 23
Joined: Wed Dec 10, 2014

20 May 2015

Thanks, I will try that

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests