How to capitalize or change form entries to uppercase

  • Profile Image
    Benkatzjlbarcheng
    Asked on April 28, 2016 at 09:55 AM

    Hi we've been using Jotform and it has been working well! We accessed the CSS a bit and found commands to make the form come out with capitalized words and uppercase where desired. Unfortunately, the CSS does not change the actual hard data that people submit. For example: If I type my name as "ben katz" (with lowercase letters) then the form will auto correct it to "Ben Katz". However, when we export the data into excel or Zapier, the information comes out as the original input, "ben katz". Is there any way to change the hard data entry so that when we export data it comes out with capitalization and uppercase where we desire?

  • Profile Image
    Huberson
    Answered on April 28, 2016 at 11:47 AM

    Hi, you can change the text capitalization while it is being edited only with CSS not in the submission. One way to achieve that, would be to embed the form source code on your website and use some JavaScript.

    You can find some help on this thread if you need all letter to be uppercase - https://www.jotform.com/answers/308351-How-to-capitalize-all-form-field-entries.

     

    If only capitalization of each word is needed, try the following script:

    input.value = input.value.capitalize(input);

    function capitalize(input){

    return input . chartAt(0) . toUpperCase() + input.slice(1);

    }