Answered
Hi, I have two questions. Apologies if these have already been answered.
Question 1: Is there a keystroke command to only allow characters in a test field? i.e. A-Z, a-z only - no numbers?
Question 2: I also need to allow only numbers in another field - AND keep the leading zero.
Dimitri posted an answer to this previously
if(!event.willCommit)
event.rc = /^\d*$/.test(event.change);
However, it will only work when the format tab is set to 'None' - which also allow characters to be inputed.
Is there a way to keep leading zeros AND limit the field to numbers only?
Thanks for any help / suggestions.
Phil
2. You need to the field to be a text field without formatting to allow for the display of leading zeros and that may mean you need to force the string type for the value.
You will need to use the 'Number()' constrictor for any fields accessing this field for numeric operations.
George Kaiser