How to remove text based on user's answer?

  • JMW1976
    Asked on October 13, 2017 at 2:35 AM

    Hi.

    I´ve been trying to search a solution for my problem, but haven´t been able to find it yet. 

    So, I made a short sample form:

    https://form.jotformeu.com/72773984317368

    It´s a sample of an checklist. There needs to be a list of items to be checked, and it would be convenient if items on the list would disappear when the user states that it´s checked. I get this working like in "Part one" of the example. But, i would like to make it like in "Part two" of the example.

    The way it works in "Part one" is ok, but it takes a lot of space in the form, and since the form is used with a smartphone, every space possible is very appreciated.

    So the question is; is there any way possible to delete words in the "Long textbox", based on the user´s input on the check box ?

    Other solution could be to make spaces between the "Short textbox" entries so small as possible and hide the textbox frames ? But those frames should be visible everywhere else in the form. 

    I´m sure I´ll get ideas from u guys =)

    Kind regards,

    Jari

  • candy
    Replied on October 13, 2017 at 4:53 AM

    Dear Jari,

    You can use update/calculate type of conditions depending on user's answer in order to delete an answer as you can see in the following guide: https://www.jotform.com/help/268-Conditional-Logic-Inserts-Text-Calculation-Into-A-Field 

    For example, you can set a condition that if the text is equal to A, set the field B as " " (empty value)

    I've cloned your form named "Sample of checklist" on my side in order to test possible workarounds. Setting following condition will make the related text field empty as you can see the screenshot below:

    1507884665Screen Shot 2017 10 13 at 11 Screenshot 10

    1507884685Screen Shot 2017 10 13 at 11 Screenshot 21

    Note: I have disabled the read-only option of the field Id input3. 

    You can also test the following form that I have cloned from your side: https://form.jotform.com/72852353123957 

    Please try this and let us know if you need any further assistance.

    Thanks.

  • Laadunvalvonta
    Replied on October 13, 2017 at 5:19 AM

    Hi.

    Thank you for quick reply. Solution suggested isn´t what I was after for. I´ll try to explain better.

    When user selectes "Gearbox", in the checkbox field. The text "Gearbox" should be deleted from "Long text" field - in order to kind of show that it´s chekced, and left are the unchecked stuff.

    Attached is an image of what I´m trying to express =)

    Kind regards,

    Jari

    1507886279capture Screenshot 10

  • candy
    Replied on October 13, 2017 at 7:07 AM

    Thank you for your effort for the extra explanation. 

    I have re-cloned your form. Unfortunately, it is not possible to change the default values in the text box conditionally.

    Besides, as another workaround, you can add text fields to the form and you can set show/hide type of conditions in order to make them hidden/appear on the form conditionally as you can see the example condition below:

    1507892676Screen Shot 2017 10 13 at 2 Screenshot 10

    Please see the screenshot below where I have set this condition:

    1507892784Screen Shot 2017 10 13 at 2 Screenshot 21

    Please find the cloned form on my side at the following URL: https://form.jotform.com/72853352123957 

    I hope this solution will help.