Passing the submission date via URL

  • aspirebrokers
    Asked on April 7, 2016 at 8:15 PM

    Hi Guys,

    Is there a way I can pass the submission date by URL to the thank you page?  I tried using the date picker widget set to today's date but it sends "false" in the URL.

    Thanks

     

  • Chriistian Jotform Support
    Replied on April 8, 2016 at 12:24 AM

    Unfortunately it is not possible to pass the date from the Date Picker Widget. A possible alternative would be to use the DateTime field to pass the date via URL to the Thank You page.

    Passing the submission date via URL Image 1 Screenshot 20

    Find the Field ID name of the Date field and then use the yellow highlighted parameter in the sample URL below:

    https://form.jotform.com/60980792248971?date[month]={date:month}&date[day]=&date[year]={date:year}

    You can check out this demo form to see it in action: https://form.jotform.com/60980792248971 

    If you need further assistance, please let us know.
    Regards

     

  • aspirebrokers
    Replied on April 8, 2016 at 12:26 AM

    Thanks. Is there a way to make the date field hidden and have it auto populate with today's date?

  • Chriistian Jotform Support
    Replied on April 8, 2016 at 1:51 AM

    To make the date field hidden, click on the gear icon on the top right of the field, then select Hide Field.

    Passing the submission date via URL Image 1 Screenshot 40

    Then to set the date to the current date, simply click the Default Date on the properties menu and set it to Current Date. The date should now be filled with the current date every time a user views the form.

    Passing the submission date via URL Image 2 Screenshot 51

    Passing the submission date via URL Image 3 Screenshot 62

    Do let us know if you need further assistance.
    Regards.