Copy link to clipboard
Copied
Hi all,
What I am trying to do is, I have a form that I ask users to input department numbers separated by commas, but people are still entering department descriptions. I want to force them to only be able to enter numbers and commas, but no other characters. Something I could use in the Custom Keystroke Script box.
Any help would be greatly appreciated.
Thank you
Copy link to clipboard
Copied
Go to the field's Properties, Format, select Custom, and enter the following as the custom Keystroke script:
event.rc = /^[\d,]*$/.test(event.change);
Copy link to clipboard
Copied
Go to the field's Properties, Format, select Custom, and enter the following as the custom Keystroke script:
event.rc = /^[\d,]*$/.test(event.change);
Copy link to clipboard
Copied
Thank you so much try67. Your help is very much appreciated.
Regards
Chico..
Copy link to clipboard
Copied
I have a variation on the above question: how can I do the same thing but limit the input to 2 digits after the decimal comma?
(In French format the decimal point is a decimal comma)
Find more inspiration, events, and resources on the new Adobe Community
Explore Now