Passing custom data to email submission

  • Profile Image
    Asked on May 05, 2012 at 06:01 PM

    I have integrated a custom script into the form that I created with JotForms. There is some inforamation that is calculated that I need to be passed to the email submission, meaning this information is not static (like the example above). How can I do that? Please advise.

    This is the form URL:

    I've pasted the form directly into the site in order to integrate the custom calculator. This gives me more direct control of the form, but I need to make sure whatever I change gets passed to the submissions as well.

    In the first page choose "N-N-N-Y-Y-N" to get to the "calculator" that passes the new information. That information is towards the bottom of page 3.

    Thanks for your help!

  • Profile Image
    Answered on May 05, 2012 at 06:32 PM

    Hi mattatbfscorp,

    The Free Text(HTML) field and the Header field are the 2 fields that cannot be displayed on the composed email notifications. You will notice they are not in the available fields in the notification compose email. This eliminates your form's ability to include the dynamic calculator you created in the Free Text(HTML) field.

    However, if you are using the source code to embed (I think you do, because you mentioned custom scripts) the form on your own website, surely there are a lot of possiblities to override this. 

    One I can think of is to use the the text area field instead to wrap the 'calculator'. You then can use the text area field included in the compose message.

    Hope this provided you additional insight in accomplishing your objective on this form. Please contact us again should you need further assistance/question.




  • Profile Image
    Answered on May 05, 2012 at 06:59 PM

    Yes, I'm embedding the source code directly, so I should have a bunch of possibilites, but I'm hoping for the most direct Jotform "compliant" possibility!

    Hmmm... interesting. I tried to "wrap" the calculator within a new textare field like so:

    <textarea>Calculator code</textarea>

    And it shows the naked HTML code of the calculator there. Can you be a little more specific about your idea -- it seems promising.

  • Profile Image
    Answered on May 06, 2012 at 02:40 AM

    I tried it using the default text area field... I simply copied your codes from the Free Text (i.e. <div>,<strong>.. and so on), I put it as default value in text area field and tested in email. I was able to display the value in notification.

    I have my sample form here . You can check the email here

    If I am to use my own script, I can pass the value of the calculator to a variable and put it in the "value" of the text area field.

    Hope this help. Inform us should you want require more assistance.
    I believe this is very much doable.