Copy link to clipboard
Copied
I've created a fillable form and i'd like to create a text only textbox.
For instance, it's possible to create a date-specific text box, I'd like to do the same but only for text only and no other characters.
Please advise?
Did you test this code? Because it doesn't work... Instead, use this as the field's custom Keystroke script:
event.rc = /^[a-z]*$/i.test(event.change);
Copy link to clipboard
Copied
Hi,
You can do that on the validate of the field something like this
// event.rc = return true to let the value stay in the field, false to revert
// event.value.match = test the string against a Regex, returns true or false
// "[A-z]" - regex that allows all capital and lower case letters.
event.rc = event.value.match("[A-z]");
Copy link to clipboard
Copied
Did you test this code? Because it doesn't work... Instead, use this as the field's custom Keystroke script:
event.rc = /^[a-z]*$/i.test(event.change);
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Copy link to clipboard
Copied
HI,
yes, but when you exit it resets to the previous text, your answer is better.
Copy link to clipboard
Copied
I can't see any form field in the document?