Caps locking in all fields a possibility?

  • 0
  • 1
  • Question
  • Updated 3 months ago
  • Answered
Looking to see if there is a way to put a caps lock on all tables and forms within an app. It helps with consistency with multiple people entering into the system.
Photo of Jeff Helseth

Jeff Helseth

  • 100 Points 100 badge 2x thumb
  • hopefully there is someway to achieve this!

Posted 10 months ago

  • 0
  • 1
Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,262 Points 20k badge 2x thumb
Use the IOL technique with this essential code:
$("form[name=editform] input[type=text], form[name=editform] textarea").on("change", function() {
  $(this).val($(this).val().toUpperCase());
});
Here is a screenshot captured after blurring each field and manually applying the above code through the console::



There are two text and two text  multi-line fields on the form. I wrote the code to capatalize each field after the field was changed. It would also make the changes on a letter by letter basis.
Photo of Joey Zint

Joey Zint

  • 1,508 Points 1k badge 2x thumb
Dan will this change any previous type fields to all caps with the page is opened after it was saved with lower case

Photo of Ⲇanom the ultimate (Dan Diebolt)

Ⲇanom the ultimate (Dan Diebolt), Champion

  • 26,262 Points 20k badge 2x thumb
No it will only uppercase fields on the open form when the value is changed. If you want to change fields to uppercase en masse you have to use another approach.

The demo in this thread shows you how to apply a regular expression to do bulk modifications to a specific field in a query,

Clear the Swamp
https://community.quickbase.com/quickbase/topics/what-is-the-clear-the-swamp-technique
(Edited)