New answers tagged

0

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


1

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


4

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