Comment créer un e-mail de changement de destinataire en fonction du code postal

  • CasalSport
    Demandé le 21 janvier 2025 à 08:01

    Bonjour,

    Je n'ai pas trouvé la fonctionnalité alors je voulais savoir s'il était possible de créer une conditions (changement de destinataire) en fonction de la valeur du champ code postal dans la partie adresse ?

    Merci d'avance.

  • Danilo Jotform Support
    Répondu le 21 janvier 2025 à 15:24

    Hi Adeline,

    Thanks for reaching out to Jotform Support. 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, Unfortunately, it is not possible to set a condition base on the zip code using the Address Element, however, you can achieve using the basic element such short text element and uncheck the postal/zip code from the address field. Let me show you how:

    1. In Form Builder, scroll down and click Address Element.
    2. Hover your mouse over the Gear Icon to open the Address properties.
    3. Under  the Option Tab, uncheck the Postal/Zip code

    Comment créer un e mail de changement de destinataire en fonction du code postal Image 1 Screenshot 50

    Then, you need to add Short Text Element to your form to replace the Zip code. Let me show you how:

    1. While in Form Builder, click on the Add Form Element menu on the left side of the page.
    2. Under the Basic tab, scroll down the list and choose the Short Text field.
    3. Then, add it below the Address Element.

    Comment créer un e mail de changement de destinataire en fonction du code postal Image 2 Screenshot 61

    Then, you need to Injecting CSS Codes to position the Short Text element closest to the Address field. Let me show you how:

    1. First, copy this code:

    [data-css-selector="id_54"] {
        position : relative;
        bottom : 60px;
    }

    [data-css-selector="id_54"] label.form-label {
        position : relative;
        top : 80px;
    }

    2. In Form Builder, click on the Paint Roller icon on the right side of the page to open Form Designer.

    3. Now, in the Form Designer menu, click on the Styles tab, scroll down and paste the code into the Inject CSS Code box. That’s it. The code is automatically saved.

    Comment créer un e mail de changement de destinataire en fonction du code postal Image 3 Screenshot 72

    After you made this change to your form, you can able to create a Change recipient conditional logic. Let me show you how:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on the Settings.

    2. In the menu on the left side of the page, click on Conditions, and then select Change Email Recipient. (If you already have a condition set, first click on Add Condition, then select Change Email Recipient.)

    Comment créer un e mail de changement de destinataire en fonction du code postal Image 4 Screenshot 83 Give it a try and let us know how it goes.