Something wrong with Date Value

  • basheerets
    Asked on June 21, 2016 at 3:38 AM

    Hi

    today morning we face new issue

    the date field will remove one of the Day number

    in the Json data through Api the data also incorrect 

     

    Jotform Thread 865343 Screenshot
  • liyam
    Replied on June 21, 2016 at 5:33 AM

    Hello basheerets,

    Can you tell us which form this issue is happening?  I can't seem to find the submission ID following your screenshot.

    Thanks.

  • basheerets
    Replied on June 21, 2016 at 5:53 AM

    In Delivery Note and you can find them by butting In Search  2-

  • basheerets
    Replied on June 21, 2016 at 6:12 AM

    In Delivery Note and you can find them by butting In Search  2-

  • liyam
    Replied on June 21, 2016 at 7:35 AM

    Thank you for your response, basheerets.

    I found the issue now, but it seems that the value is coming from somewhere else as the field is actually hidden and cannot be filled manually.  Technically, the missing value is 0. Can you share with us the process on how the form gets submitted so we can track down where this blank value is coming from?

    Thanks.

  • basheerets
    Replied on June 22, 2016 at 12:46 AM

    we are filling most of the data with query string and the rest will be from the staff 

    http://www.jotformpro.com/form/52233845591963?visitDate%5bday%5d=%202&visitDate%5bmonth%5d=06&visitDate%5byear%5d=2016&etsVisit=2350-1000472-4-2016-4-239-3&customerName=Kuwait%20Food%20Co.%20(Americana)-KRISPY%20KREME%20-%20DRIVE%20THRU&store=Metwali%20Store&typeOf137=Regular

     

  • beril JotForm UI Developer
    Replied on June 22, 2016 at 3:24 AM

    Thank you for providing the URL link. When I've checked your link I see that you're filling the data as you see below:

    http://www.jotformpro.com/form/52233845591963?visitDate%5bday%5d=%202&visitDate%5bmonth%5d=06&visitDate%5byear%5d=2016&etsVisit=2350-1000472-4-2016-4-239-3&customerName=Kuwait%20Food%20Co.%20(Americana)-KRISPY%20KREME%20-%20DRIVE%20THRU&store=Metwali%20Store&typeOf137=Regular

    If you change the values which were marked with red you will be able to change the date value. If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.

  • basheerets
    Replied on June 22, 2016 at 3:31 AM

    thank you for you answer 
    but do you have and suggestion for this issue 
    because from my side this is the link 
    http://jotformpro.com/form/52233845591963?visitDate[day]= 18&visitDate[month]=06&visitDate[year]=2016&etsVisit=2350-1000472-4-2016-4-325-3&customerName=Kuwait Food Co. (Americana)-KFC - Al Haffar - Al Ain Road&store=Fayes Store&typeOf137=Regular

    but he browser will add the extra char 

    thanks and regards 

  • Elton Support Team Lead
    Replied on June 22, 2016 at 5:42 AM

    That specific link works, however the link you've initially shared with us is this

    http://www.jotformpro.com/form/52233845591963?visitDate%5bday%5d=%202&visitDate%5bmonth%5d=06&visitDate%5byear%5d=2016&etsVisit=2350-1000472-4-2016-4-239-3&customerName=Kuwait%20Food%20Co.%20(Americana)-KRISPY%20KREME%20-%20DRIVE%20THRU&store=Metwali%20Store&typeOf137=Regular

    The day value captured is %202. Please take note that %20 in URL encoding is equivalent to space. That's most likely the reason why only one digit 2 was captured instead of 02 from %202. The final value printed on the submissions page is  2 (the green line is a white space equal to %20).

    So to avoid such case, we suggest to omit any space value on the URL parameters. You can filter them in your script or if you're entering them manually, make sure to get rid of the space before the number.

    Hope this helps!

  • basheerets
    Replied on June 22, 2016 at 5:47 AM

    OK 

    thanks a lot for the help