How can I prepopulate the date field?

  • Profile Image
    Wtfuck
    Asked on October 25, 2012 at 05:25 PM

    Hi

    What about the Date field

    How can i prepopulation the field

    Because isn't in the user guide

    Thx

    -Wtf



    This is a re-post of a comment on Prepopulating Fields to Your Jotform via URL Parameters

  • Profile Image
    Wtfuck
    Answered on October 26, 2012 at 07:07 AM

    I'm Working on Pendentifs form

    I know is it possible but i want to do like this URL

    http://form.jotformpro.com/form/22841821868966?nomDu={nomDu}&numeroDe5={numeroDe5}&ticket={ticket}&delais[day]={delais[day]}&delais[month]={delais[month]}&delais[year]={delais[year]}&rar={rar}&montantRar={montantRar}

    But it's not working

    Thx

  • Profile Image
    NeilVicente
    Answered on October 26, 2012 at 07:20 AM

    @Wtfuck

    I don't understand why you're using {tags} to prefill the form. Is this form linked from another one?

    Prepopulation should work for your form. Here's a good example:

    http://form.jotformpro.com/form/22841821868966?nomDu=Neil%20Vicente&numeroDe5=5532512&ticket=T05005225&delais[day]=24&delais[month]=08&delais[year]=2014&rar=Oui&montantRar=50

    Do you perhaps need more information as to how URL prepopulation works?

  • Profile Image
    Wtfuck
    Answered on October 26, 2012 at 07:32 AM

    No the form is no linked to another one

    I use this link in the thanks page,

    when a customer want to submit another submission with the same information this is why i use tags and it's works except with the date field

    thx

  • Profile Image
    NeilVicente
    Answered on October 26, 2012 at 07:43 AM

    Thank you for that information.

    The proper {tag} for day, month and year, are as follows:

    {dateField:day}
    {dateField:month}
    {dateField:year}

    Therefore, the URL should be:

    http://form.jotformpro.com/form/22841821868966?nomDu={nomDu}&numeroDe5={numeroDe5}&ticket={ticket}&delais[day]={delais:day}&delais[month]={delais:month}&delais[year]={delais:year}&rar={rar}&montantRar={montantRar}

    Hope this helps!

  • Profile Image
    Jonneal3
    Answered on January 18, 2016 at 02:21 PM

    How do you do this for time fields also?