-
CasalSportDemandé 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 SupportRé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:
- In Form Builder, scroll down and click Address Element.
- Hover your mouse over the Gear Icon to open the Address properties.
- Under the Option Tab, uncheck the Postal/Zip code.
Then, you need to add Short Text Element to your form to replace the Zip code. Let me show you how:
- While in Form Builder, click on the Add Form Element menu on the left side of the page.
- Under the Basic tab, scroll down the list and choose the Short Text field.
- Then, add it below the Address Element.
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.
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.)