Conditions: How to Hide other fields when editing form answers via Edit Link

  • meekahspeed
    Asked on September 18, 2024 at 2:49 PM

    Hello! I need guidance on how to hide certain fields in the edit link of a form.

    I have a form that has already been filled out by clients, and now I need to add a new field. My intention is to send them the edit link so they can fill in just this new field without altering the information already submitted. To ensure they don't modify existing fields, I'd like to hide them.

    I considered using conditions, but I'm not sure how to configure them in a way that this new rule doesn't interfere with future submissions. Additionally, I don't want to create a new form based on the data already filled in, as that would result in the loss of attached files. It's also important that all information remains centralized in a single table.

    Therefore, I need help configuring these hiding conditions so that they don't affect future submissions.


    Thanks!

  • Deanne JotForm Support
    Replied on September 18, 2024 at 3:51 PM

    Hi meekahspeed,

    Thanks for reaching out to Jotform Support. If you want to let the form fillers only edit the newly added fields, you can use the Get Form Page URL widget to check if they are accessing the form via the edit link. If they are, you can then use conditions to only show the newly added fields. Here's how to do it:

    Let's add the Get Form Page URL widget to your form:

    1. On the left side of the page, click on Add Element+.
    2. Under the Widgets tab, click on Get Form Page URL to add it to your form.

    Conditions: How to Hide other fields when editing form answers via Edit Link Image 1 Screenshot 70

    Now let's add a new Autoresponder Email with an edit link:

    1. IForm Builder, in the orange navigation bar at the top of the page, click on Settings.
    2. On the left panel, click on Emails.
    3. Click on +Add Email and select Autoresponder Email.
    4. Update the Email Subject if you want. 
    5. Add in a new row and on the upper right, click on +Form Fields.
    6. Select Edit Link and it will then be added to the email template.
    7. Click on Save when you're done.

    Conditions: How to Hide other fields when editing form answers via Edit Link Image 2 Screenshot 81

    Next is adding in the condition:

    1. In the same window, on the left panel, click on Conditions.
    2. Click on +Add Condition and select Show/Hide Field.
    3. Follow the condition shown below and click on Save when done.

    Conditions: How to Hide other fields when editing form answers via Edit Link Image 3 Screenshot 92

    Below is a screenshot of the condition. It's basically saying to hide the old fields if the form is accessed through the edit link.

    Conditions: How to Hide other fields when editing form answers via Edit Link Image 4 Screenshot 103

    Lastly, is to add a Send Email button in Tables:

    1. Go to Tables page.
    2. In the last column, click on +Add.
    3. Under the Buttons tab, click on Send Email.
    4. Enter a column name and select the Autoresponder Email we just created.
    5. Click on Create Column and you can then send the email with the edit link in Tables.

    Conditions: How to Hide other fields when editing form answers via Edit Link Image 5 Screenshot 114

    After clicking on the Send Email button, it will send out to the recipient an email with the edit link. When they click on the Edit Link, they will then be redirected to the form where the old fields are hidden.

    Conditions: How to Hide other fields when editing form answers via Edit Link Image 6 Screenshot 125

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

Your Answer