2 Replies Latest reply on Aug 30, 2013 11:59 AM by gkaiseril



      I have a field where users will be entering a grade. Is there a way to set it so that if the user enters an uncapitalized "SK", it will be automatically capitalized? The users may also be entering the grades in numerical form ("1", "2", etc) or in words ("One"), which I would like to capitalize the first letter of if they do not.


      This is my attempt, but I think I've erred in the form since it keeps defaulting to "SK":


      if (event.value = "Sk" || "sk")

      {event.value = "SK";}


      {event.value = event.value.substr(0,1).toUpperCase() + event.value.substr(1);}