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

    Feature Request. Ability to clear a field according to a condition

    Asked by NRCsupport on October 29, 2015 at 09:51 AM

    The ability to set a value into a field based on a condition is very useful. It would be great if this could be extended to allow the option to set the field as empty.

    There are situations where if someone changes their mind about a selection, the fields which were available and entered on their first selection might need to be set as empty when using the second selection.

    Feature Request a Selection and useful allow
  • Profile Image
    JotForm Support

    Answered by BJoanna on October 29, 2015 at 01:13 PM

    Before opening feature request, please provide us more details so that we can better understand your request. Also if possible provide us a form and give us an example of what exactly you want to achieve. 

    Also there is a Clear Form button. It can be added on the Submit Button field.

    Looking forward to your reply.

  • Profile Image

    Answered by NRCsupport on October 29, 2015 at 08:12 PM

    OK. I've created a tiny form called "simple test". The user is asked if he wants to enter event A. If he says yes, he is asked to mark which of various activities in event A interest him.

    If he says no to the first question he is asked if he wants to enter event B. If he says yes, he is asked to mark which of various activities in event B interest him.

    The various fields are only displayed when relevant. So the first question is always displayed, the first activity field isonly displayed if the answer to first question is yes. The second question is only displayed if the answer to the first question is no, and the second activity field is only displayed if the answer to the first question is no, and to the sceond question is yes.

    This all works fine, but if the user changes his mind and alters a yes to a no, some fields get hidden but retain their values. Andif he subsequently alters that no back to a yes, the fields reappear with their former values.

    I want to be able to clear those fields to empty when they are hidden, sothat when they reappear they must be entered afresh.

    It seems to me that this could be done quite simply if the conditional option to insert a value in a field included the option to clear the field in addition to the option to generate a value to put in the field

  • Profile Image
    JotForm Support

    Answered by beril on October 30, 2015 at 05:36 AM

    Hi,

    Thank you for your detailed reply.

    I understand that you want to clear old data if the user changes his/her mind.

     

    you can add condition to clear input data.

     

    Here is how to do this:

    1) Click on Setup & Embed.

     

    2) Click on Conditions.

     

    3) Choose Update a form field value.

     

    4) Make the arrangements as you see below.

    If you don't want to waste your time, feel free to clone it.

    https://form.jotform.com/53021999071962

    I hope, this information is useful for you.

    If you have any question or issues, please do not hesitate contacting us. We will be glad to assist you.

  • Profile Image

    Answered by NRCsupport on October 30, 2015 at 12:28 PM

    That looks to be exactly what I asked for. But where does {blank field} come from?

    I'm not sure how to clone your form. I keeping messages to the effect that the form can't be found.

  • Profile Image
    JotForm Support

    Answered by BJoanna on October 30, 2015 at 02:06 PM

    Here is my demo form: https://form.jotform.com/53022280076951? 

    Inside of this guide you can find how to clone an Existing Form from a URL.

    {blank field} is value of the "blank field" that is added inside of the form and that is not visible to the users. That field is empty and it is only used to pass empty field value to check box field and that will remove previously entered date form check box field. 

    Hope this will help. Let us know if you need further assistance. 

  • Profile Image

    Answered by NRCsupport on October 30, 2015 at 08:39 PM

    WONDERFUL. That is exactly what I want.

    I sligtly altered your conditional entries, so that Do you wish to enter event B also gets cleared out when Do you wish to enter event A is set to yes.

    Can you tell me what type of field you used for "blank field"?

    It does successfully clear radio box fields and check box fields. Will it clear all other types of data entry field too? If so it is absolutely ideal, and should be added to user guide or FAQs.

    Thank you so much!!!

  • Profile Image
    JotForm Support

    Answered by BJoanna on October 31, 2015 at 04:55 AM

    Blank Field is text box field.

    I am not sure if it will clear all other field type.

    I have tested and it will clear text box and text area fields.

    Here is my demo form: https://form.jotform.com/53031855181956? 

    The best way see if it will clear other fields types it to test it. 

    Hope this will help. Let us know if you need further assistance.