Limit a field to accept only alphabets and dashes

  • Albert Tyler Barnett
    Fecha de consulta 11 de diciembre de 2023, 21:07

    How can I limit a field to accept only A-Z, a-z, and dashes? NO spaces allowed.

  • Hilary Jotform Support
    Fecha de respuesta 12 de diciembre de 2023, 2:27

    Hi Albert,

    Thanks for reaching out to Jotform Support. You can set validation to require the input value to match a certain format. It can limit alphabets only but not both alphabets and dashes. Let me show you how:

    1. In Form Builder, click on Add Form Element.Limit a field to accept only alphabets and dashes Image 1 Screenshot 50
    2. Drag-and-drop Short Text field to the form.Limit a field to accept only alphabets and dashes Image 2 Screenshot 61
    3. Click on Gear icon for Short Text field.Limit a field to accept only alphabets and dashes Image 3 Screenshot 72
    4. Go to Options.
    5. Choose Alphabetic for Validation.Limit a field to accept only alphabets and dashes Image 4 Screenshot 83

    Give it a try and let us know if you need any other help.