Skip to main content
Eli-zabelle
Inspiring
May 29, 2017
Answered

Removing certain string characters from field entry

  • May 29, 2017
  • 1 reply
  • 1874 views

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

Thanks.

This topic has been closed for replies.
Correct answer try67

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

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

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
May 29, 2017

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

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

Eli-zabelle
Inspiring
May 29, 2017

Thank you, excellent.