Feature Request: Require form user to enter text/data only in uppercase

  • Casa_Fitness
    Perguntado em 4 de setembro de 2023 às 14:48

    É possível exigir que o solicitante escreva um campo inteiro em caps look, e que o formulário não seja enviado se isso não acontecer?

  • Gilbert Jotform Support
    Respondido em 4 de setembro de 2023 às 15:01

    Hi Casa_Fitness,

    Thanks for using Jotform. Unfortunately, our Portuguese Support agents are busy helping other Jotform users at the moment. I'll try to help you in English using Google Translate, but you can reply in whichever language you feel comfortable using. Or, if you'd rather have support in Portuguese, let us know and we can have them do that. But, keep in mind that you'd have to wait until they're available again.

    Now, let me help you with your question. Unfortunately, we don't have a validation to only allow the input text to be in uppercase. You can inject a custom CSS code into your form to automatically convert the input text into uppercase:

    input {
      text-transform: uppercase !important;
    }


    But please note that the CSS code can only capitalize the letters while filling out the form. It doesn't alter the data in the backend and they will still be in the original letter case entered by the form user. If you are embedding the form within your website, you may use the source code instead to embed your form and then add the "onkeyup" Javascript EventListener to every input field.

    onDISABLEDkeyup="this.value = this.value.toUpperCase();"


    This way, once the user enters a value into the input field, that value is then actually transformed to uppercase. So when the user submits the form, the uppercased value is saved to Jotform.

    However, I've also gone ahead and escalated this as a feature to our developers to see if they could implement an option to require the input text to be in uppercase. But when or if it's developed depends on their workload, how viable it is, and how many other users also request it. If there are any updates, we’ll circle back to this thread and let you know.

    Thanks for your patience and understanding, we appreciate it.