Skip to main content
Participant
Sep 29, 2023 2:29 PM UTC
Question

Changing Characters to Lowercase

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 is closed to new replies. Start a new post to keep the conversation going.

5 replies

try67
Community Expert
Community Expert
Sep 29, 2023 2:33 PM UTC

As the field's custom Validation script enter this:

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

Translate
try67
Community Expert
Community Expert
Sep 29, 2023 2:40 PM UTC

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

Translate