Delete the uploaded file when the other option is selected

  • landmarkgroup
    Asked on April 19, 2025 at 12:28 AM

    Hi Team,

    In the form https://www.jotform.com/form/232502843063045

    in VAT section, we have 2 options

    1. Vat Certificate
    2. VAT declaration

    If VAT certificate is selected we need to upload a document, in case of VAT declaration we need to fill few information.

    My issue is if someone selects VAT certificate and upload a document than he selects declaration he is filling information also

    Is there a way if some one selects VAT declaration and already uploaded VAT certificate we can delete VAT certificate as soon as he selects VAT Declaration



  • Eliza Jotform Support
    Replied on April 19, 2025 at 1:22 AM

    Hi landmarkgroup,

    Thanks for reaching out to Jotform Support. I cloned and tested your form, and ran into the same thing. To clear the uploaded VAT Certificate when they change their selection to VAT Declaration, you can change the Clear Hidden Field Values to Clear when hidden. Let me show you how to do that:

    1. In Form Builder, click on Settings in the orange navigation bar at the top part of the page.
    2. Under Form Settings, click on Show More Options at the bottom.
    3. Scroll down to see the Clear Hidden Field Values dropdown, and select Clear when hidden.

    Delete the uploaded file when the other option is selected Image 1 Screenshot 30

    Check out the screencast below to see my results:

    Delete the uploaded file when the other option is selected Image 2 Screenshot 41

    Give it a try and let us know if you need any other help.

Your Answer