Skip to main content
stepheng54012748
Known Participant
November 15, 2024
Answered

All caps even if typed in as lower caps

  • November 15, 2024
  • 2 replies
  • 583 views

Here is an interesting question.  Is there a javascript that can be inserted into maybe validation that returns all CAPS for what was entered into the field?  I'd like to use this in the Name, Address, City, State fields.  If anyone has any thoughts or possible script that would be much appreciated.

 

This topic has been closed for replies.
Correct answer JR Boulay

Use this as a custom keystroke script (Format):

event.change = event.change.toUpperCase();

 

2 replies

JR Boulay
Community Expert
JR BoulayCommunity ExpertCorrect answer
Community Expert
November 16, 2024

Use this as a custom keystroke script (Format):

event.change = event.change.toUpperCase();

 

Acrobate du PDF, InDesigner et Photoshopographe
try67
Community Expert
Community Expert
November 16, 2024

Note this doesn't change the actual value of the field, though, only the way it is displayed. To change the actual value you need to use the Validation or Calculation events, not Format.

PDF Automation Station
Community Expert
Community Expert
November 16, 2024

Custom validation script:

event.value = event.value.toUpperCase();