Skip to main content
Eli-zabelle
Inspiring
May 29, 2017 7:37 PM UTC
Answered

Removing certain string characters from field entry

Is there a script to remove characters from a field entry if one is entered, like a comma?

Thanks.

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
May 29, 2017 8:02 PM UTC

Sure. You can use this script as a custom validation script to do that:

event.value = event.value.replace(/,/g, "");

5 replies

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 29, 2017 8:02 PM UTC

Sure. You can use this script as a custom validation script to do that:

event.value = event.value.replace(/,/g, "");

Translate
Eli-zabelle
Inspiring
May 29, 2017 8:16 PM UTC

Thank you, excellent.

Translate