What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    CAN I ENSURE THAT ALL FIELDS ARE COMPLETED IN CAPITAL LETTERS

    Asked by nicrigden on July 08, 2014 at 10:58 AM

    Is there a way to convert all text entered onto my form into CAPITAL LETTERS please?

    capitalize uppercase javascript
  • Profile Image
    JotForm Support

    Answered by EltonCris on July 08, 2014 at 11:44 AM

    Hi,

    That's possible thru inject CSS but it's only for the form level. Unfortunately, this does not affect the submissions data unless the user actually entered text with capital letters.

    Example:

    #input_1{

    text-transform:uppercase;

    }

    Just replace input_1 with the field ID you want to transform into capital letters.

    How-to-find-Field-IDs-Names

    ----

    However, you can achieve this when you use your form source code and add custom script that would transform text into capital letters and would remain capital when its stored on your form submissions page.

    http://www.jotform.com/help/104-How%20to%20Get%20your%20Form%20Source%20Code

    If you need further assistance, let us know here.

    Regards!

  • Profile Image

    Answered by nicrigden on July 09, 2014 at 09:59 AM

    Hi,

    OK I am interested in using my form source code and adding the custom script as above, however the help link provided doesn't work, could you check it please?

    Regards

    Nic

     

  • Profile Image

    Answered by Carina on July 09, 2014 at 11:44 AM

    Hello Nick 

    I could follow the link provided by Elton, but if you still have troubles with it please go to our advanced features section and search "How to get the Full Source Code of your Form".

    Please let us know if further support is needed.

    Thank you

  • Profile Image

    Answered by nicrigden on July 10, 2014 at 04:12 AM

    Ok I've found it, do you know the script I would need to add to transform text into capital letters that would remain capital when its stored on my form submissions page please?

    Thanks

    Nic

  • Profile Image
    JotForm Support

    Answered by jonathan on July 10, 2014 at 06:53 AM

    Hi Nic,

    You can find such sample script here

    A sample script is like this 

    1 2 3 String.prototype.capitalize = function() { return this.replace(/(?:^|\s)\S/g, function(a) { return a.toUpperCase(); }); };

    Hope this help. Inform us if you need further assistance.

    Thanks!