Loading

Restricted Input for Currency Fields in Salesforce Lightning Experience

Udgivelsesdato: May 22, 2026
Beskrivelse
Currency fields in Classic accept a variety of inputs, including special characters such as $ and extra spaces.  During the Save transaction, these values are converted to a standard format.  Conversely, Lightning prevents the input of special characters and extra spaces.
Løsning

In the Salesforce Lightning Experience framework, Currency fields are considered to have an input type of "number." This field type is bound by HTML5 standards, which consider the $ symbol and spaces to be invalid input. Users should enter only plain numerical values in Currency fields when using Salesforce Lightning Experience. The currency symbol, code, or name is applied automatically upon Save

Component Reference: Formatted Number
Component Attributes: Input  (see section for 'Number')

Vidensartikelnummer

000381176

 
Indlæser
Salesforce Help | Article