Pass data from one form to another via URL Parameters: Time Range not populating

  • info_info639_Taxi
    Asked on June 16, 2024 at 3:59 PM

    Hi

    I was wondering about the prefill action button in the thank you page it doesn't let you prefill time fields

  • Eliza JotForm Support
    Replied on June 16, 2024 at 4:33 PM

    Hi info_info639_Taxi,

    Thanks for reaching out to Jotform Support. Are you trying to pass the data from this form to this form? If yes, you can do this by using URL parameters. In my example below, I'll prefill form B's Requested Pick-up time field from form A's Requested Pick-up time field. The URL format should be:

    URL of the target form?unique name of the target field={unique name of the source field}

    To do this, I first need to get the unique names of both the source field and target field. Let me show you how to do that:

    1. In the target form's Form Builder page, click on the target field, and click on the Gear icon to open Properties.
    2. Go to the Advanced tab, and expand Field Details.
    3. Copy the Unique Name.

    Pass data from one form to another via URL Parameters: Time Range not populating Image 1 Screenshot 50

    You also need to get the unique name of the source form's field, where the data will be from. Check out the screencast below:

    Pass data from one form to another via URL Parameters: Time Range not populating Image 2 Screenshot 61

    The URL parameters should be:

    https://www.jotform.com/form/241215513026241?requestedPickup={requestedPickup}

    Now, you need to add this URL to your source form's Thank You Page under Settings. Let's do it:

    1. In Form Builder, click on Settings in the orange navigation bar at the top part of the page.
    2. Select Thank You Page from the left-side menu.
    3. Select Redirect to an external link after submission.
    4. Enter the given URL parameters above into the Enter URL field.

    Pass data from one form to another via URL Parameters: Time Range not populating Image 3 Screenshot 72

    Check out the screencast below to see my results:

    Pass data from one form to another via URL Parameters: Time Range not populating Image 4 Screenshot 83

    You can also get back to us to specify which certain fields you want to be prepopulated, so we can help you form the whole URL parameters.

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

  • info_info639_Taxi
    Replied on June 16, 2024 at 4:41 PM

    thanks I would need all the fields that aren't calculations to prepopulate

  • Sigit JotForm Support
    Replied on June 16, 2024 at 5:38 PM

    Hi info_info639_Taxi,

    Thanks for getting back to us. As mentioned by our teammate, it is possible to prepopulate form fields. This guide will show you how. Please note that prepopulating Form Fields via URL Parameters supports the following fields:

    • Full Name
    • Email
    • Address
    • Short Text
    • Long Text
    • Fill in the Blank
    • Phone
    • Number
    • Date Picker
    • Time
    • Dropdown
    • Single Choice
    • Multiple Choice
    • Scale Rating
    • Spinner

    Here's an example how the prepopulated URL looks like that you can insert to the Thank You page.

    https://jotform.com/241215513026241?driverName={driverName}&driverNumber={driverNumber}&unitNumber175={unitNumber175}

    Click here to view the prepopulated URL in action on a cloned form.

    Give it a try and let us know if there's anything else we can do for you or if you're having difficulties prepopulating the form fields.

  • info_info639_Taxi
    Replied on June 16, 2024 at 11:04 PM

    I was able to get it mostly working except, I have a few fields that are time ranges and it populates the first part of the range but not the second one

  • Raymond JotForm Support
    Replied on June 16, 2024 at 11:30 PM

    Hi info_info639_Taxi,

    So that we can help you better, can you share with us the link to your related forms and indicate the fields you're working on. This will allow us to understand what's happening further and assist you further.

    After we hear back from you, we’ll have a better idea of what’s going on and how to help.

  • info_info639_Taxi
    Replied on June 17, 2024 at 2:04 AM

    So here is the first form that my drivers fill out

    https://form.jotform.com/240905829217056

    and here is the second one

    https://form.jotform.com/241215513026241

    and this is the url that I made based off the answers I got above

    https://www.jotform.com/form/241215513026241?driverName={driverName}&driverNumber={driverNumber}&unitNumber175={unitNumber175}&hallconTrip177={hallconTrip177}&trainNumber={trainNumber}&dispatcherName={dispatcherName}&client={client}&date={date}&requestedPickup={requestedPickup}&startTime={startTime}&outgoingCrew={outgoingCrew}&outgoingEmployee={outgoingEmployee}&backhaulCrew={backhaulCrew}&backhaulEmployee={backhaulEmployee}&pickUp={pickUp}&arrivalTime={arrivalTime}&startOdometer={startOdometer}&arrivalOdometer={arrivalOdometer}&destination1={destination1}&arrivalTime35={arrivalTime35}&arrivalOdometer38={arrivalOdometer38}&destination2={destination2}&backhaul43={backhaul43}&arrivalTime44={arrivalTime44}&arrivalOdometer47={arrivalOdometer47}&destination3={destination3}&backhaul51={backhaul51}&arrivalTime52={arrivalTime52}&arrivalOdometer55={arrivalOdometer55}&tripDetails={tripDetails}&arrivalTime59={arrivalTime59}&tripDetails63={tripDetails63}&arrivalTime64={arrivalTime64}&tripDetails68={tripDetails68}&departureTime70={departureTime70}&assistCharge={assistCharge}&meterCharge={meterCharge}


    My goal was to have our drivers enter in the fields on the first form and when they hit submit it automatically fills out the second form and submits without the driver seeing the information on the second form as there is a different set of calculations that happen on the second form. I have got almost all of that working properly except for the time range part on the second form it doesn't auto populate the second part of the range. I have screenshotted 2 examples.

    Pass data from one form to another via URL Parameters: Time Range not populating Image 1 Screenshot 30Pass data from one form to another via URL Parameters: Time Range not populating Image 2 Screenshot 41


  • Lara JotForm Support
    Replied on June 17, 2024 at 3:23 AM

    Hello info_info639_Taxi,

    Thanks for getting back to us. I cloned your form and tested it to see if I could replicate the issue, but departure time was filled out. Check out the screenshot below to see my results:

    Pass data from one form to another via URL Parameters: Time Range not populating Image 1 Screenshot 20I've gone ahead and cleared your form caches as an additional aid. Can you try it again and see how it goes? If you run into the same issue again, please share a recording of what's happening and share the link with our Support Forum. You can upload the video recording to any public sharing platform like Google Drive, YouTube, or Dropbox and share the public link with us. You can also use Loom to record the video and share the video link with us.

    Once we hear back from you, we'll be able to move forward with a solution.

  • info_info639_Taxi
    Replied on June 17, 2024 at 8:11 PM

    This still doesnt work for me,

    also I noticed that it doesnt seem to work for mobile. As i tested it out by downloading the app on my phone and using a different email and invited myself to the forms. it does redirect me to the second form on mobile but does not prefill anything.
  • Sonnyfer JotForm Support
    Replied on June 17, 2024 at 8:56 PM

    Hi info_info639_Taxi,

    I understand the issue, but I'll need a bit of time to look into this. I will be back shortly.

    Thanks for your patience and understanding, we appreciate it.

  • Sonnyfer JotForm Support
    Replied on June 17, 2024 at 10:08 PM

    Hi info_info639_Taxi,

    Please use the following syntax to get both time in time range:

    arrivalTime=09:51&arrivalTime[timeInputRange]=10:51

    It should look like this, for example:

    Pass data from one form to another via URL Parameters: Time Range not populating Image 1 Screenshot 20

    As for your other question about the Jotform Mobile App, I moved it to a new thread to avoid confusion. You can check that out here.

    Let us know if you need any more help.

 
Your Answer