Copy link to clipboard
Copied
Is there a script to remove characters from a field entry if one is entered, like a comma?
Thanks.
Sure. You can use this script as a custom validation script to do that:
event.value = event.value.replace(/,/g, "");
Copy link to clipboard
Copied
Sure. You can use this script as a custom validation script to do that:
event.value = event.value.replace(/,/g, "");
Copy link to clipboard
Copied
Thank you, excellent.
Copy link to clipboard
Copied
This script works well for removing commas, but what if I want to remove the / from a date entry.
e.g: 2024/04/17 to become 20240417.
Thanks in advance!
Copy link to clipboard
Copied
Use this code to remove all non-digits:
event.value = event.value.replace(/\D/g, "");
Copy link to clipboard
Copied
Thank you so much!
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more