A custom field with a percentage sign
Hi all.
I am in the process of building a custom form and I will need to allow users to enter a field with a percentage sign. For example, 10% or 20%.
This is easily achievable if the field is of a Text format.
But the challenge is that because this field is also part of a math calculation in the form, it has to be set as the Number format (as opposed to Text).
If a field has the Number format, users would not be able to enter the percentage sign. So instead of, say, 10%, the expected value is 0.1. This won't be ideal because I still want users to enter the value with a percentage sign (easier on the eye as well).
What is the best way to tackle this? I was thinking I could keep this field as Text format so that users can still input the % sign, and then use a calculated field to manipulate this string and this will be a Number field. Then I can use this calculated field as part of the formula.
Or is there any other clever way that I have missed?
Many tanks