What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Display hidden field in email?

    Asked by rubyannrsls on November 26, 2014 at 08:06 AM

    Hello there,

    Any update about this? Is it possible for a hidden field to be display in email? Thanks!

    hidden field email condition
  • Profile Image
    JotForm Support

    Answered by Charlie on November 26, 2014 at 08:37 AM

    Hi,

    I believe it is now possible, depending on the condition that you have. I've made a sample form, you can check the guide below.

     

    1. This is my sample form, with a field name "Hidden" and is currently hidden when viewed in live form.

    2. To hide a field, you need to click on that gear icon of that field and choose "Hide Field"

    3. I then navigate to "Setup & Embed"->Conditions

    4. I chose "Update a Form Field Value" because I want the "Hidden" field to have values in it depending on the condition I set up.

    5. In my Conditions Wizard, I set a rule that when the "Email" field is filled, the content or value of the "Hidden" field will be "Hidden is Filled".

    6. After that, I will set up my notifications in "Email Alerts".

    7. You will see on the upper right side of the display the form fields available that you can put to your email content, this includes the "Hidden" field. 

    8. I've made a test submission and you can see that the content for the "Hidden" field is now displayed in your email notification.

    Here is the live sample form to see how it works: http://form.jotformpro.com/form/43292902385963.

    I hope this helps or at least gives you an idea on how to proceed. Let us know if you need further assistance on this.

    Thank you.

  • Profile Image

    Answered by rubyannrsls on November 26, 2014 at 08:35 PM

    Hi Charlie,

    That's what I did, it's just that I put the hidden field in the subject of email. In my case, the {hidden} in your example email is in my email's subject. I got 0 (zero) value in the subject of the hidden field when i got the email. I'm sorry for not telling that first. Is it possible to display hidden field in the subject of email? Thanks!

  • Profile Image
    JotForm Support

    Answered by Charlie on November 26, 2014 at 09:01 PM

    Hi,

    No worries. If it's alright you could also share your form's URL so that I can check where the problem might be.

    Anyways, you can try this one. The problem might be that if you are using different fields that are hidden and adding them into your Email's Subject line, the reason that it returns "0" is that it is set to a numeric value. If you are using another field as a value for the hidden field you can switch the return types to numeric or text values.

    1. Value is in numeric, click it to change to text value.

    Value is in Text, click it to change to numeric.

     

    In my case, the field I used is a textbox, so I hard coded the values as a text which is "Hidden is Filled". Then, just like what we did early, we now added the {hidden} tag in the subject line.

    My notification email will be like the screenshot below, the "Hidden" field value is also in the subject line.

    I hope this helps. Let us know if it works or if you need further assistance on this.

    Thank you.

  • Profile Image

    Answered by rubyannrsls on November 27, 2014 at 01:04 AM

    Hats off! Thanks! It works like magic! You really guys are an amazing team! Cheers!

  • Profile Image
    JotForm Support

    Answered by Charlie on November 27, 2014 at 08:03 AM

    Hi,

    You're most welcome and thank you for the compliment, I'm glad it worked. If you need any assistance again or have other concerns, feel free to open up a new thread here in the forum.

    Thank you.