Feature: A single condition that clears multiple fields

  • Profile Image
    Marten_Hirsch
    Asked on April 12, 2022 at 07:51 AM

    Team,


    I have a two part form which I created. It goes to the customer first and then the second have goes to the representative. For the representative section, I am using the URL to set which fields to display and what page to start on.

    We have noticed that fields from either section will be cleared if we go to the form again-- not sure of the exact circumstances. I have attached a screenshot which shows the URL with the edit term and the first page that has the email address of the customer blank even though this information was entered.


    Please advise if you can figure out why this is happening.


    Thanks


    Marten

  • Profile Image
    Norwyn
    Answered on April 12, 2022 at 08:47 AM

    Hello Marten,

    Thank you for reaching out to Jotform Support. I cloned your form and submitted a test entry and I was not able to replicate the issue. Could you send us a screencast on how you are editing the form? To attach a screencast, please see the steps below:

    1. Open the thread in your browser via an email sent as a reply.
    2. Once the thread is opened, please click on the image icon on the top toolbar in the Your Answer section.
    3. Select the image or drop the file into the box then click on the green Add button to upload the file.

    nfqviBmCKNH_k_AgZ2t-gOeceSkYAXrN4yFowS6X

    We will watch out for your response.

  • Profile Image
    Marten_Hirsch
    Answered on April 12, 2022 at 09:22 AM

    Did you submit both parts of the form? You have to submit both parts of the form in order to replicate this issue.


    Marten

  • Profile Image
    Maruel_T
    Answered on April 12, 2022 at 10:11 AM

    Hi there,

    Allow us to investigate further. We will get back to you as soon as we have a solution.

    Thank you for your patience.

  • Profile Image
    Maruel_T
    Answered on April 12, 2022 at 10:56 AM

    Hello Marten,

    We have checked the cloned version of your form and also tested the second part, however, could not replicate the issue.

    Here's the edit link for my cloned version form submission which correctly loads the submitted data: https://www.jotform.com/edit/5255829548717056406

    I've also checked and there are no form calculation conditions related to those fields that might change their values to empty. Could you please provide a particular submission edit link that clears values for those fields as displayed on the screenshot, so we can check and investigate it further?


  • Profile Image
    Marten_Hirsch
    Answered on April 12, 2022 at 01:27 PM

    I looked at your cloned form and when I tried to look at the Rep section, it was empty.


    Check yourself. But it seems to have deleted the data that you entered in the rep section.


    Look at your table submission as well.


    Marten

  • Profile Image
    Ashwin
    Answered on April 12, 2022 at 01:59 PM

    Hello Marten,

    Please accept my apology for the inconvenience this has caused. I did test your form by sending a test submission and then I edited the submission with the edit link I received in the email, I was able to replicate the issue.

    It seems the issue is caused because of the "Clear Hidden Field Values" form setting, which is enabled in form. This is clearing the values of the conditionally hidden field when the submission is edited. To solve this issue, please change the form setting "Clear Hidden Field Values" to "Don't Clear" as show in the screenshot below:

    1649786240_6255bd80ce3a3_clearField.gif

    Please try it out and get back to us if the issue persists.

    We look forward to assisting you further.


  • Profile Image
    Marten_Hirsch
    Answered on April 12, 2022 at 02:02 PM

    Thanks.

    I set it to clear upon hidden as there are instances where a customer makes a mistake in a conditional field and then goes back in the form and the data in the hidden fields persists. Do you have a solution for this. Marten

  • Profile Image
    Ashwin
    Answered on April 12, 2022 at 03:15 PM

    Hello Marten,

    Thank you for sharing additional information. Please note that when your users edit the submission, your other fields remain hidden conditionally. Since you have enabled the "Clear Hidden Field Values" form setting; therefore, when the form is submitted, it is clearing the value of the hidden fields.

    Unfortunately, there is no workaround to fix this. You need to change the "Clear Hidden Field Values" form setting to "Don't Clear" or make the form fields visible in form. If you want, you can add a condition to disable the fields instead of hiding them.

    If you have any further questions, please let us know.


  • Profile Image
    Marten_Hirsch
    Answered on April 12, 2022 at 04:28 PM

    I would actually prefer to disable fields but you do not have a disable multiple choice so I would need to add many fields one by one which is a bit onerous. It would be great if you implement a disable multiple feature. I see many people have requested.


    I was using hte update/calculate field to reset fields if a user changed his mind but I was running into some issues with that.


    Thanks for your help.


    Marten



  • Profile Image
    Marten_Hirsch
    Answered on April 12, 2022 at 05:58 PM

    One thing I read is that if I disable a field that it deletes any content that was stored in the field. Is that correct? If so, disabling fields would not work in my case.


    Please confirm.


    Thanks


    Marten

  • Profile Image
    Vincent
    Answered on April 12, 2022 at 06:37 PM

    Hello Marten,

    If you disable the field, the data will not be deleted or edited. It will be a Read-only field. Here's a screencast editing the form and disabling the form field:

    If I choose an option to the "Type a question" multiple choice field, it will disable the form field below.

    1649801916_6255fabcae0b5_zcvxa33.gif

    How about using the Insert Text (Space only) and it will clear the data of the form field based on the user answer? Please check the screencast below on the second "Type a Question" field.

    1649802851_6255fe63716af_av5r1asf.gif

    Here's what the condition looks like for the two screencasts above:

    1649802912_6255fea082461_ca51dfsaf.png

    And here are the guides that you can check for more information:

    https://www.jotform.com/help/371-how-to-enable-disable-fields-using-conditional-logic/

    https://www.jotform.com/help/268-how-to-insert-text-or-calculation-into-a-field-using-conditional-logic/


  • Profile Image
    Marten_Hirsch
    Answered on April 12, 2022 at 08:55 PM

    Team,


    Thanks for the tips. It is an workaround but it does not work great when you have multiple fields that you have to reset. I had to create about twenty rules just to implement this and this was just in the two cases where it was most likely to be needed.

    Again, it would be great if you could place the "space" value in multiple questions that I wanted to clear all at once.


    Sincerely,


    Marten

  • Profile Image
    Sonnyfer
    Answered on April 12, 2022 at 11:30 PM

    Hello Marten,

    Thanks for getting back to us. To my understanding, do you wish to have a single condition to clear multiple Multiple Choice fields? Kindly confirm and we'll forward this ticket as a Feature Request to our developers.

    We look forward to assisting you further.

  • Profile Image
    Marten Hirsch 
    Answered on April 13, 2022 at 07:36 AM

    Yes. Confirmed. A single condition clear multiple fields generally, not just multiple choice fields, or any combination of multiple choice and text fields.


    Thanks


    Marten

  • Profile Image
    Cecile
    Answered on April 13, 2022 at 07:44 AM

    Hello Marten,

    Thank you for the confirmation. I have created a feature request ticket and will be forwarding it to our backend team for possible implementation. Please note that we can't give an ETA for when this will be implemented. Feature requests depend on the workloads of our developers and popularity among our users. But rest assured we will inform you via this thread once this feature becomes available.

    Let us know if you have any other concerns. Thank you!