Hidden field and conditions

  • Profile Image
    amherst_building
    Asked on June 19, 2020 at 04:39 AM

    I have a hidden field that when it is filled out doesn't trigger any conditions, only when it is viewable.  Is there a way to accomplish this.  I would like to do the following.

    1.) Have hidden field hidden to submitter

    2.) Once I receive the form, I review it and put my results in the hidden field

    3.) Hidden field then triggers e-mail to go out with that information. 

    *Hidden field can be viewed at this point but needs to be disabled with the conditions*


  • Profile Image
    gerardw
    Answered on June 19, 2020 at 06:25 AM

    Hello,

    Yes, it is possible to show the field on the form using conditions. You DO NOT need to manually Hide the field on the form. You can hide it using conditions so that it won't appear on the form while the submitter is filling it.

    What you should do is:

    1. Add a Get Form Page URL widget into the form - https://www.jotform.com/help/252-How-to-Add-a-Widget-to-Your-Form

    2. You receive the form submission via email. Ensure that there is an Edit submission link in your notification email (by default, all notification emails will have an Edit submission link at the bottom of the email content). 

    Now add a condition in the form similar to the one below:

    15925619981906_15.png

    What this condition does is that, the Get Form Page URL widget checks if the page URL contains the word "edit" and only then shows this required field.

    Hence it will not show on the form while submitter is filling the form.

    Once you have filled the field, you can submit the form, which will trigger another "Edit" notification email. To get this edited email, you will need to enable the "Send on Edit" option in your notification email settings:

    15925621611906_16.png

    Do review and let us know if you have any questions. If you face any confusions, you can let us know your form URL, the fields and we can help you set this up.