Hidden field doesn't show up right as a condition

  • Profile Image
    Markgoessens
    Asked on January 06, 2012 at 09:06 AM

    Hi,

    I think I have a last question regarding the conditions.
    After that, everything works perfect for me. Thank you all very much!

    I made a few conditions.
    If a user selects radiobutton X then show a certain HTML field in the form.
    This works fine.
    But I was trying to show that HTML field in the notification e-mails too.
    I read on this forum that this was not possible. In that case I had to use the hidden fields too.

    So at the end of my form I made the same conditions as I made at the HTML field, with the hidden fields.
    In the e-mail notification I filed in: 

    Prijs {prijs50}{prijs}{prijs52}{prijs53}{prijs54}

     

    But the problem is, that in the e-mail all the available choices are shown, like you see. 

    Prijs €0Prijs = € 21 excl. en €25 incl. btwPrijs = € 37,50 excl. en €44,64 incl. btwPrijs = € 75 excl. en € 89,25 incl. btwPrijs = € 150 excl. en € 178,50 incl. btw

     

    Actually there has to be one choice behind "prijs"

    Can you tell me what I'm doing wrong?

     

  • Profile Image
    fxr
    Answered on January 06, 2012 at 01:50 PM

    No, there is no way to use the conditions on your notification emails, I'm afraid. 

    Whatever variable name you put on the email with stay on the email regardless of whether or not you have condition to show or hide it on your form. 

    ---

    If this functionality is really important to you, it may be possible to provide a little bit of javascript that you can use, that would populate one hidden field with whatever price you need, that field would then appear on the email alert. 

    But this would mean you would have to willing to download the forms source code and put it on your website. 

    Its not that much of a complicated procedure but it is a little extra work. 

    The procedure is here -> http://www.jotform.com/help/104-How-to-download-a-source-code-of-your-form

    You would then need to extract the zip archive and upload the files & folders to your website. 

    NOTE: any updates/changes you make to your form on JotForm would mean you have to reupload a new file back to your webserver. 

    I am more than happy to provide the little bit of javascript you would need to make the form work as per your needs.