What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Timepicker Widget returns False Value when using placeholder as preset

    Asked by fotobaren_ on June 07, 2016 at 08:38 AM

    I try to preset Timepicker widget time. I select Hide default time and go to the field in builder and change the time field (eg: 18:00). In the main input, this show 18:00. But when data is send, it's show: false, instead of 18:00.

    Is it possible to set a time (not current one) in this widget?

    builder time field select and
  • Profile Image
    JotForm Support

    Answered by Chriistian on June 07, 2016 at 10:03 AM

    Hi,

    I cloned your form http://www.jotformeu.com/form/52262654952358 but unable to replicate the issue. The filled up the form with 8:10 and it is saved as it is in the submissions page. Please see below.

    Can you please clone my form and try it on your end? Here it is: https://form.jotform.com/61583571300955.

     

    If you are referring to a different form though, please give us the form link.

  • Profile Image

    Answered by fotobaren_ on June 07, 2016 at 10:49 AM

    Hi! This is not my form. https://form.jotform.com/61545028829259

    Here's how to reproduce this:

    Add widget Time Picker. And set Hide default time and put a time (18:00) in placeholder.

     

  • Profile Image

    Answered by fotobaren_ on June 07, 2016 at 10:53 AM

    You will see that this settings is shown in the widget field: 

    And you will also see it in the webform.

    If you set the field to requested, and don't touch it... you will get a warning to fill the field:

     

    If you don't set it to required, you will get false in result (not 18:00)

  • Profile Image
    JotForm Support

    Answered by KadeJM on June 07, 2016 at 12:10 PM

    It seems my colleague found that form on your current account and thought that might be the one you are having the problem with since you didn't tell us which form this was happening on initially.

    So thank you for the clarification about your issue as well as the replication steps and we do apologize about any confusion.

    Please allow us some time to thoroughly test and investigate this issue further and we'll respond to you again about this problem shortly as soon as we can.

  • Profile Image
    JotForm Support

    Answered by KadeJM on June 07, 2016 at 12:39 PM

    Update ~

    I found that for the part with the settings in the widget field's settings I cannot replicate this since it is apart the design to open the settings when clicked on to use those controls as needed.

    However, it appears there's an issue with the time function side of things which is causing it to return "false" as a value that you mentioned which shouldn't be happening regardless of such. And I found I can replicate this part of the problem no matter the time unless adjusted then it shows.

    So I think that the placeholder time as your preset should work if left alone instead of being used even if someone chooses not to touch it.

    I'm sending a bug report about this to our developers to see if there's something we can do to enhance and correct the current functionality and we'll inform you if later on down the road if there are any updates if that happens.

  • Profile Image

    Answered by fotobaren_ on June 07, 2016 at 01:14 PM

    Thanks a lot!

  • Profile Image
    JotForm Support

    Answered by TitusN on July 11, 2016 at 05:03 AM

    We've fixed it.

    The time picker will not send "false" when the default value remains unchanged by the form user. 

    Give it a try - let us know. 

    Thanks. 

  • Profile Image

    Answered by fotobaren_ on July 11, 2016 at 10:06 AM

    This give me an error like field is not filled

    https://form.jotform.com/61545028829259

     

  • Profile Image
    JotForm Support

    Answered by david on July 11, 2016 at 12:15 PM

    I updated your widgets and they should no longer show the error unless the field is actually not filled.  Let us know if the error persists and we will be happy to have another look.

  • Profile Image

    Answered by fotobaren_ on July 11, 2016 at 08:16 PM

    I always get a request to fill the field. But, if we can use url parameter to prefill, this can work too for me.

  • Profile Image

    Answered by fotobaren_ on July 11, 2016 at 08:20 PM

    But, yes, this didn't return false now if the field is not required... just... nothing :/

  • Profile Image
    JotForm Support

    Answered by Chriistian on July 11, 2016 at 09:59 PM

    I would like to inform you that widgets are loaded in a separate iFrame within the form, so it is not possible to prepopulate the widget fields using URL parameter. You can only prepopulate regular form fields.

    I checked your form and I can see that the Timepicker widget returns an empty value when the placeholder is left alone. I will let our backend team know of this issue. We will let you know on this thread once we have any updates. Regards.

  • Profile Image
    JotForm Support

    Answered by TitusN on July 11, 2016 at 11:50 PM

    When "false" was being sent as data from the widget, it was a bug, we fixed that. 

     

    The placeholder text, if added to the time picker,  is not designed to act as data for the widget, so:

    1. Required validation will be triggered if the time picker is not updated

    2. If the time picker is not required, no value will be submitted if nothing is modified, placeholder or otherwise. 

    I think this is best addressed by a feature request to add a parameter setting for a custom time. 

     

    If you would like this implemented, kindly acknowledge in your next response, and a feature request ticket will be opened.

    If you'd like, we can also offer alternative workarounds as the feature is being implemented (features normally take a while to turn around).

    Looking forward. 

  • Profile Image

    Answered by fotobaren_ on July 12, 2016 at 11:05 AM

    Yes i would like this. It's a little bit sad because the actual placeholder set the time correctly...

    Thanks to add this as a Feature request.

  • Profile Image
    JotForm Support

    Answered by Kevin_G on July 12, 2016 at 12:28 PM

    Thank you for letting us know about this @fotobaren_

    In order to properly escalate your thread as a feature request, I have moved it to another thread, it can be found here: https://www.jotform.com/answers/880745 

    We will assist you there as soon as possible.