Number: Allow users to enter three department number values only

  • Christian_AUVINET
    Demandé le 18 juin 2024 à 09:34

    Bonjour je souhaiterais un champs chiffre pour demander le département au client qui rempli le formulaire. Le souci c'est que je souhaiterais limiter ce champs a 3 possibilités 64, 33 et 40. Si l'utilisateur rempli autre chose un message d'erreur "vous n'êtes pas dans le bon département" doit s'afficher.

    Est il possible de créer ce champs avec votre solution ?

    Cordialement,

  • Jovito Jotform Support
    Répondu le 18 juin 2024 à 11:57

    Hi Christian,

    Our French Support agents are busy helping other Jotform users right now, so 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 French, let us know and we can have them do that. But, it might take a while until they're available again.

    Now, coming back to your question, just to clarify, you want to enter the department in the Number field. Is that correct? If you have three departments, and you will collect three different numbers for each department, I recommend using a Dropdown field and add the three departments. Let me show you how:

    1. In Form Builder, add a Dropdown field. Add the three departments.

    Number: Allow users to enter three department number values only Image 1 Screenshot 40

    2. Add three Number fields that correspond to each department.

    Number: Allow users to enter three department number values only Image 2 Screenshot 51

    3. Add a Show/Hide a Field condition that will show/hide the Number field. Do this on the three departments.

    Number: Allow users to enter three department number values only Image 3 Screenshot 62

    You can check my cloned form if this meets your requirements. If this demo form is not what you're looking for, can you give me a short description or scenario on how you want this to be implemented?

    Once we hear back from you, we'll be able to help you with this.