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

    Show/Hide causes value to be ignored on an input tag

    Asked by markashton on April 25, 2011 at 03:30 PM

    Hi,

    Would you be kind enough to look at another bug I've found - seems small - but to me catastrophic. 

    http://form.jotform.com/form/11140836292

    Regards Mark

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 25, 2011 at 04:24 PM

    Hello Mark,

    I checked your form's source and the input's value still shows as it is, even though it is not displayed in the browser.

    <input type="text" value="http://www.workflows.co.uk" size="20">

    Also, for what it's worth, I cloned your form and replaced the HTML input with a textbox field using built-in Text Box from the Form Builder. I have set the default value to http://www.workflows.co.uk and then hid the field using condition.

    Take a look at this clone of your form, and see if this could be a better alternative.

    Regards,
    Neil

  • Profile Image

    Answered by allanftd on April 25, 2011 at 04:33 PM

    Hi Mark,

    Thanks for bringing this to our attention. Have you tried using a text box instead of a Free Form (HTML) field? Please click here for a sample.

    Please let us know if it works according to your specifications or not. Thank you for using JotForm!

    JOTFORM SUPPORT

  • Profile Image

    Answered by markashton on April 26, 2011 at 05:18 AM

    Alan

    You seemed to have changed the class of an input field. Am I correct? I could only do this using full source code.

    Please check this demo that has both input and text area tags failing to show value when used the free text html element. I have my reasons for wanting this to work in html text (one can keep a lot of stuff in a block)

    http://form.jotform.com/form/11154100292

    Regards Mark

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 26, 2011 at 05:28 AM

    Hey Mark,

    This seems to be a bug that's causing the values to disappear. Since you insist on using the free text html element instead of the built-in text box element in the Form Builder, I'm afraid I have no other solutions to offer to you.

    What I can do for now is to report this 'bug' to our developers. I cannot guarantee a lead time though as to when this will be fixed. Thank you for your patience.

    Neil

  • Profile Image

    Answered by markashton on April 26, 2011 at 05:35 AM

    Neil,

    In context, it is part of a layout that I have in the freetext html element. Of course I have a show/hide on this html free text. If I use another form element like text area I will have to redesign this bit splitting it into 'html free text' followed by a Text Area element followed by free text .... and then aplly show/hide to all these elements ...

    So, I was trying to avoid that inconvenience

    Thanks for your help on that one anyhow.

    Regards Mark

  • Profile Image
    JotForm Support

    Answered by NeilVicente on April 26, 2011 at 05:48 AM

    Mark,

    I understand that you do not want the inconvenience of adding a separate condition for each of those elements in the 'block' that you want hidden. The thing is, adding custom input in your free text block would prove to be more problematic in the long run as these fields are not "registered" with Jotform's system.

    It means that whatever information is filled on those custom input boxes would not be included in the submissions. Also, If you check your notification setup, you wouldn't find any identifiers for those fields in the Compose Email wizard.

     

    Anyway, if it will console you, I have already submitted a previous ticket for another user who is requesting for the ability to add multiple actions (hide/show multiple elements, etc.) to a single condition. I also think it's high time that such change be implemented. It will definitely save time time for our users.


    Neil

  • Profile Image

    Answered by serkan on May 02, 2011 at 11:21 AM

    Hi mark, this is actually not a bug. You seem to have placed an input field on your form using Free HTML field.

    JotForm automatically cleans the values of conditional fields when they are hidden to prevent their values to be submitted. However, when you trigger a condition to show them JotForm successfully places the default value back. In your example JotForm cannot do this because your field does not have the necessery class name. 

    Please use the input fields provided by form builder. If you need to add a form field on your form using HTML tool Just add them this class name and a unique ID, JotForm will know what to do. Class name: "form-textbox"

     

    I'll cancel this ticket now, because there is no fix for this.