-
evensbelizaireDemandé le 27 juin 2023 à 08:10
Bonjour
J'aimerai utiliser la pre-remplisage dans mon form2, mais je n'arrive pas a trouver la bonne syntaxe. J'ai utilisé les syntaxes suivants dans la page de remerciement du form 1 - mais aucun ne fonctionne
&employe[first_87]={employe[first_27]}&employe[last_87]={employe[last_27]}
&employe[first_87]=employe[first_27]
&employe[last_87]={employe[last_27]}
&first_87={first_27}&last_87={last_27}
form 1: https://www.jotform.com/build/231674304533250
form 2: https://www.jotform.com/build/231718472028254
Pouvez-vous vérifier et m'assister svp
Merci
-
Richard_ARépondu le 27 juin 2023 à 10:29
Hi evensbelizaire,
Thanks for reaching out to Jotform Support. I'd like to let you know that I am using our translation tool to provide assistance, but if you would prefer to get assistance in your native language, we can forward your request to our French team. However, please take note that it could take a bit longer to receive a response.
With that being said, it looks like you wanted to prefill your second form's name field using the URL Parameter. Since the name field is divided into first and last name boxes, we need to create a separate parameter to transfer them. The correct parameter should be like the one below:
&employe[first]={employe:first}&employe[last]={employe:last}
That's it! You can combine this with your existing parameter and it should fix the issue. Check out the screencast below:
Give it a try and let us know if you have any other questions.
-
evensbelizaireRépondu le 27 juin 2023 à 12:52
Hello Richard
Merci pour votre aide, ca fonctionne.
Une autre question j'aimerais faire la même chose pour le champ DateIN
Ce serait quoi la syntaxe?
Hello Richard
Thanks for your help, it works.
Another question, I'd like to do the same thing for the DateIN field.
What would be the syntax?
-
Richard_ARépondu le 27 juin 2023 à 13:30
Hi evensbelizaire,
Thanks for getting back to us. We can use the same format for the date field. But this time, we need to separate the parameters into the Day, Month, and Year of your date field. The URL parameter would be like the one below:
dateout[day]={datein:day}&dateout[month]={datein:month}&dateout[year]={datein:year}
Please remove the {datein} tag on your existing URL Parameter and replace it with the correct syntax above. Here's the result:
Give it a try and let us know if you have any other questions.
-
evensbelizaireRépondu le 27 juin 2023 à 14:03
Hi Richard
Good,
And the time section in the DateIn ?
-
Richard_ARépondu le 27 juin 2023 à 15:31
Hi evensbelizaire,
Thanks for getting back to us. For us to pass the data from one form to another, we need to identify the field IDs that we want to pass. In this case, the field ID for your time inside the date picker is [timeInput]
Thus, the syntax should be like the one below:
datein[timeInput]={datein:timeInput}
Also, I noticed that the current URL parameters for the live form are not working. Once the URL is finalized, please make sure that it doesn't have any spacing or else you might get an error after clicking the submit button.
Give it a try and let us know if you have any other questions.
-
evensbelizaireRépondu le 27 juin 2023 à 19:16
Hello Richard
Un grand merci.
Tout fonctionne maintenant, j'ai corrige l'erreur qui avait dans l'URL.
Est ce qu'il est possible d'avoir la durée entre l'heure dateIn et l'heure dateOut
Hi Richard
Many thanks.
Everything works now, I corrected the error that was in the URL.
Is it possible to have the duration between the dateIn field and the dateOut field? -
Angeli Jotform SupportRépondu le 28 juin 2023 à 02:35
Hi evensbelizaire,
Thanks for getting back to us. I moved your other question to a new thread and will help you with that here.
Let us know if there’s anything else we can help you with.
-
evensbelizaireRépondu le 28 juin 2023 à 20:15
Thanks