Default value for text field being ignored

  • Deralict
    Asked on January 11, 2015 at 2:36 AM

    On my form I have a text field ("Fulltime_result") that is set to have a default value of 1. This will eventually be a hidden field; it will receive a value of 1 from a condition that is executed when a toggle field ("Work full-time") is set to "No" (which it is set to by default). So if the toggle is set to "No", "Fulltime_result" should be set to 1, and if set to "Yes", "Fulltime_result" should be set to null.

    The problem is that the field does not assume the default value of 1 as it is set to when the form loads.

    How can I fix this?

     

  • jonathan
    Replied on January 11, 2015 at 8:20 AM

    Hi,

    The caused of the default value 1 being cleared on the form was due to the conditional statement that was also using the same field.

    Default value for text field being ignored Image 1 Screenshot 40

     

    Modify the conditional statement to this

    Default value for text field being ignored Image 2 Screenshot 51

     

    It will now load the form with a default value 1

    Default value for text field being ignored Image 3 Screenshot 62

     

    Hope this help. Please let us know if you need further assistance.

    Thanks.

     

  • Deralict
    Replied on January 11, 2015 at 2:28 PM

    That did it! Great thanks. Just for some constructive criticism--the conditions feature is pretty powerful, but not that intuitive. I would expect you guys get a lot of support questions just because the way in which one expects them to work is not how they actually work.

    Keep up the good work nonetheless, in general the service is great.

  • jonathan
    Replied on January 11, 2015 at 3:40 PM

    Hi,

    We're glad to know it works. And thank you also for the feedback. 

    I understand what you meant. Our dev are also aware of your feedback and we always take into consideration any criticism/feedback/input our users have. 

    Contact us again anytime for any assistance you need with JotForm.

     

    Thanks!