You need to sign in to do that
Don't have an account?

Salesforce lightning component-Input Number format %
Hello,
I'm working with Lightning component.
I have lightning input type number and format Percent, but when I want to test that I have wrong value.
Exmple I put 8 (normaly I have 8%) but I have 800%.


Can someone help me please.
I'm working with Lightning component.
I have lightning input type number and format Percent, but when I want to test that I have wrong value.
Exmple I put 8 (normaly I have 8%) but I have 800%.
Can someone help me please.
Use formatter="percent-fixed" instead of percent.
Please mark it as Solved if my reply was helpful. It will make it available for other as the proper solution.
Thanks and Regards
Sandhya
All Answers
Use formatter="percent-fixed" instead of percent.
Please mark it as Solved if my reply was helpful. It will make it available for other as the proper solution.
Thanks and Regards
Sandhya
Can you please explain the difference between "percent" and "percent-fixed"? When to use which among these two?
Thanks!