Comment préremplir des données en fonction des données d'un autre champ ?

  • mickaelchavatte
    Demandé le 28 mars 2025 à 05:39

    Bonjour,

    comment puis intégrer automatiquement un NOM et un PRENOM en fonction d'une données AGENCE dans mon formulaire ?

    Est-ce possible avec CONDITIONS ?

    Est ce possible avec des données de pré remplissage ?


    Cordialement

  • John Jotform Support
    Répondu le 28 mars 2025 à 08:40

    Hi Mickael,

    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, yes, it is possible to automatically integrate a Surname and First Name based on Agency data in your form using both Conditions and Prefill Data.

    With Conditional Logic, it would work well if you have a predefined list of agencies and their corresponding names. You can set up conditions to automatically populate fields based on the selected Agency. Here's an example based on your form with a dropdown field for Agency, but you can adjust the condition as needed. Let me show you how:

    1. In Form Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. Click on Conditions on the left of the page.
    3. Now, click on Add a New Condition and then click on Update/Calculate Field. Comment préremplir des données en fonction des données dun autre champ ? Image 1 Screenshot 100
    4. Set up the conditions as you see below and click on Save. Comment préremplir des données en fonction des données dun autre champ ? Image 2 Screenshot 111

    With Jotform Prefill Feature, you can autopopulate the Surname and First Name. You can choose which Prefill method suites you best, I used the Manual Prefill Feature as an example here. This allows you to pre-populate fields with data before the form is shared. Here's how:

    1. In Form Builder, go to the Publish tab.
    2. From the left side menu, click on Prefill.
    3. Click on Manual PrefillComment préremplir des données en fonction des données dun autre champ ? Image 3 Screenshot 122
    4. Select the Add a New Prefill button. This should open the form where all your data are that you can use for further prefilling. Comment préremplir des données en fonction des données dun autre champ ? Image 4 Screenshot 133
    5. Enter all the values for the fields that you wish to prepopulate.
    6. Finally, click on the Create button at the upper right side of the page. Comment préremplir des données en fonction des données dun autre champ ? Image 5 Screenshot 144

    You can also prefill your form with data using the ff:

    • Forms
    • Tables
    • Salesforce
    • HubSpot
    • Airtable
    • SSO
    • Pipedrive
    • monday.com

    Additionally, the Spreadsheet to Form Widget is another option; it allows you to prefill a form with data from an XLS, XLSX, or CSV file. Let me show you how to use it:

    1. Create a spreadsheet with your data structured like you see below. Make sure that the column names in the spreadsheet match the field names on the form, and include a unique column, like an ID, so the data can be distinguished.

    Comment préremplir des données en fonction des données dun autre champ ? Image 6 Screenshot 155

    2. In Form Builder, click on the Add Form Element menu on the left side of the page.

    3. Click on the Widgets tab, search for the Spreadsheet to Form widget and add it to your form.

    4. In the menu on the right side of the page, upload your data file. (You can simply drag & drop your excel file to the Upload File area.) 

    Comment préremplir des données en fonction des données dun autre champ ? Image 7 Screenshot 166

    5. Then, click on the Downward Arrow icon in the Access Code Column option and select the unique column.

    6. You can also customize texts used in the widget. After you complete everything, click on the Update Widget button at the bottom right of the menu.

    Comment préremplir des données en fonction des données dun autre champ ? Image 8 Screenshot 177 Now, when people fill out your form and enter the unique code from the spreadsheet, the corresponding fields will automatically populate when they click Auto Complete Fields. Check out my screencast below to see how it works:

    Comment préremplir des données en fonction des données dun autre champ ? Image 9 Screenshot 188 Give it a try and let us know if you need any help.

  • mickaelchavatte
    Répondu le 1 avril 2025 à 11:10

    Bonjour,

    merci pour votre retour.

    j'ai essayé les 3 façons, que j'avais déjà essayé, mais aucune ne remplir "Chef d'établissement", j'ai meme fait un nouveaux formulaire mais rien n'y fait. Pouvez vous m'aider

    Comment préremplir des données en fonction des données dun autre champ ? Image 1 Screenshot 40Comment préremplir des données en fonction des données dun autre champ ? Image 2 Screenshot 51Comment préremplir des données en fonction des données dun autre champ ? Image 3 Screenshot 62


  • mickaelchavatte
    Répondu le 1 avril 2025 à 11:12
  • John Jotform Support
    Répondu le 1 avril 2025 à 12:02

    Hi Mickael,

    I see. Jotform treats the Full Name element as a single field, making it difficult for conditional logic to update the fields separately. As a workaround, you can use two Short Text fields instead to populate these fields based on the selected option in the Agency field. Here's how:

    1. In Form Builder, click on the Add Element button on the left side of the page.
    2. Under the Basic tab, click on the Short Text element twice to add two Short Text elements on your form. Label these as Prénom and Nom de famille.
    3. You can shrink these fields so they could be in one row by clicking on the Gear icon, then on the menu on the right, toggle ON the Shrink section to make field smaller. Comment préremplir des données en fonction des données dun autre champ ? Image 1 Screenshot 60
    4. Next, in the orange navigation bar at the top of the page, click on Settings.
    5. Click on Conditions on the left of the page.
    6. Now, click on Add a New Condition and then click on Update/Calculate Field. Comment préremplir des données en fonction des données dun autre champ ? Image 2 Screenshot 71
    7. Set up the conditions as you see below and click on Save. Comment préremplir des données en fonction des données dun autre champ ? Image 3 Screenshot 82Comment préremplir des données en fonction des données dun autre champ ? Image 4 Screenshot 93

    Check out the result below:

    Comment préremplir des données en fonction des données dun autre champ ? Image 5 Screenshot 104

    Give it a try and let us know how it goes.

  • mickaelchavatte
    Répondu le 1 avril 2025 à 15:10

    Hi,


    je comprends mais ma problématique finale m'oblige à avoir un widget prénom/nom "classique" car j'en ai besoin pour automatiser la signature de mon document.






  • mickaelchavatte
    Répondu le 1 avril 2025 à 15:15

    Hi,


    je comprends mais ma problématique finale m'oblige à avoir un widget prénom/nom "classique" car j'en ai besoin pour automatiser la signature de mon document.

    ATTESTATION FRPT - Jotform Sign

    Essai QCM FRPT 5 - Jotform Form Builder

    Comment préremplir des données en fonction des données dun autre champ ? Image 1 Screenshot 20

  • Christine Jotform Support
    Répondu le 1 avril 2025 à 23:28

    Hi Mickael,

    I’ll need a bit of time to look into this. I’ll get back to you as soon as I can.

    We appreciate your patience while we work on a solution.

  • mickaelchavatte
    Répondu le 2 avril 2025 à 01:19

    Hi Christine,

    thank you!

  • Christine Jotform Support
    Répondu le 2 avril 2025 à 20:28

    Hi Mickael,

    Unfortunately, it is not possible to pre-fill or set the First name and Last name for the Full name element using a condition depending on the submitter's answer. While the feature you’re looking for isn’t currently available, rest assured we’re always working to add new services and features to Jotform. I've gone ahead and escalated your request to our Developers. When or if it's implemented depends on their workload, how viable it is, and how many other users request it. If there are any updates, we’ll circle back to this thread and let you know.

    Let us know if there’s anything else we can help you with.

  • mickaelchavatte
    Répondu le 3 avril 2025 à 04:42

    Hi Christine,

    ok thank you.

Votre réponse