New answers tagged


I didn't realize it was formatted JSON! I used Datasource and it worked like a charm.


you can do something like this baseCurrency; quoteCurrency; handleBaseCurrencyChange(event) { this.baseCurreny =; } handleQuoteCurrencyChange(event) { if ( === this.baseCurrency) { = ''; this.error = "Don't use the same value for the Quote Currency"; } ...


You can't actually stop the user entering bad data (they could even enter values that are not currency names - you might want to think about using a picklist data source, or even have some apex to provide the details), but what you can do is make sure your component renders a nice big error message instead of the conversion UI in this case. Since the ...

Top 50 recent answers are included