How to capitalize or change form entries to uppercase

  • Benkatzjlbarcheng
    Asked on April 28, 2016 at 9: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?

  • Huberson
    Replied 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.

     

    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);

    }