Skip to main content
Participant
September 29, 2023
Question

Changing Characters to Lowercase

  • September 29, 2023
  • 1 reply
  • 1063 views

I need help with a script to change a specific character to lowercase if it was typed in uppercase in a field. Example: 24X12X6 I need just the X's to be changed to lowercase when a button is pressed, only if a number is before and after it. Thanks!

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
September 29, 2023

As the field's custom Validation script enter this:

event.value = event.value.toLowerCase();

try67
Community Expert
Community Expert
September 29, 2023

Sorry, I might have read it too quickly... Do you expect there to be other (non-numeric) characters in the field?