Using a value from a hidden field in a THank You URL and email doesn't work

  • Profile Image
    Asked on January 25, 2016 at 03:05 PM

    I only want to show New Order Total on my form when it is different from the original order total created on the purchase order.    So, the field, New Order Total, is normally SHOWN on my form only if  the original order total qualifies for a shipping discount and thus the adjustment field that is subtracted from the original order amount to populate New Order Total has a value > 0. 

    While I show New Order Total conditionally, it is always populated with the final order total.  I always fill New Order Total with my original order total - any adjustment (and sometimes the adjustment = 0.)  

    Then . . .

        if payment method = PayPal or Credit card, I use the New Order Total field value as a parameter on my THank You page URL that invokes my PayPal Payment form,

        and I always display New Order Total in my emails from the form. 

    The problem is that . . .

      the New Order Total field value only is passed to my PayPal Payment form via the URL and only appears in my form emails when the field is SHOWN because the order qualified for a discount.

    I know it's getting properly populated because I temporarily disabled the conditional SHOW on the field.

    Please tell me what to do to get fix these problems.  

    From another forum question, it looks like I could add {HIDDEN} after the field name on emails. Is that correct?  Would that still work when the field was conditionally shown?

    Do I just have to show the field unconditionally to get these functions to work?

    Thanks for your help.  I have this problem on 4 different order forms.


  • Profile Image
    Answered on January 25, 2016 at 09:24 PM



    If I understand correctly, you want to pass the value from the New Order Total to the thank you page even when it is hidden in the conditions.

    Perhaps you can try adding a redirect link to your paypal form instead of adding the form directly in the Thank You page. Then you can setup the link with data that will populate the paypal form.

    Prepopulating fields to your JotForm via URL parameters


    The newOrder185hidden is the New Total Order field as it is hidden, which means it will populate the value to the Paypal form even when it is hidden.


    Let us know if you need further assistance,


  • Profile Image
    Answered on January 26, 2016 at 11:07 AM

    I'm confused now about your reply.  

    Are  you saying that the way to pass the value of a hidden field as a parameter on a URL is to append the word, "hidden", to the field name?  It looks like you're saying to alter the target field name rather than the source field name.  FYI, I already pass the field value to a hidden target field on my PayPal Payment form. It works when the source field is shown, but not when it's hidden.   

    Ideally, I want a method to pass the value of a field that is sometimes hidden and sometimes shown. If that is not possible, I need a method to pass the value of a field that is hidden to a field on another form that is invoked by a Thank You page URL. (I already use the redirect condition for a custom Thank You page when Payment Method = check or other.)

  • Profile Image
    Answered on January 26, 2016 at 01:50 PM

    Passing parameters to a hidden field in another form or a field that is conditionally hidden is not possible. I made my own tests and it really don't work, the form must show the field in order to make this to work.

  • Profile Image
    Answered on January 26, 2016 at 02:33 PM

    Passing a value via parameter TO a hidden field works fine for me.  The form that I pass to is here:

    I successfully pass values to the hidden orderAmount field from about 8 other forms including:


    My problem was passing a value FROM a hidden field via a parameter on a URL link.  I now have figured out how to do it if it is always hidden...

    . . .&orderAmount={finalOrderHidden}{HIDDEN). . .

    I seek a way to pass the value from a field that is sometimes hidden and conditionally shown. If there is no way to do this, I will create yet another duplicate field on my 4 forms where this occurs, copy the sometimes hidden field's value into it, and use the new field as the parameter in the URL and emails. Please let me know.

    Thank you.

  • Profile Image
    Answered on January 26, 2016 at 03:19 PM

    I now have determined that you don't need to add "{HIDDEN}" in the URL for a field that is always hidden to appear where it should when passed to another form.  It seems the problem only occurs when the field used as the source value is CONDITIONALLY hidden or shown.  

    Unless you provide me a better way, I will add the duplicate field, make it always hidden, use it in parameters on URL links, and append{HIDDEN} to the field when presented in emails.  

    (NOTE: I don't always appear to need the {HIDDEN} on hidden fields included in emails, but I've gotten variable results! I have several forms that show hidden fields in emails without the {HIDDEN}, but on others, the extra {HIDDEN} seems to be needed?!?)

  • Profile Image
    Answered on January 26, 2016 at 05:23 PM

    I think the reason why the parameter on you conditional hidden field is not passing, it's due to the current setup in your form, your form is clearing values on submit of conditionally hidden fields:

    Simply set "Don't clear", test it and let us know what happens. If it does not work, I think making it always hidden is the best option.

  • Profile Image
    Answered on January 27, 2016 at 10:51 AM

    Thanks for your suggestion.  Setting the value to Don't Clear does seem to work.  It really doesn't make any sense though because I pass a different hidden field value (from a text box) that works on a URL regardless of the clear setting.  Also, I typically do want the form cleared after submission.  

    At any rate, I guess I have enough information to make things work via various methods.  I just wish the behavior were more consistent.  I don't really understand when to use these devices.  I'll have to use trial and error every time.  As it is, sometimes I need {HIDDEN} to show hidden fields on emails and sometimes not, and sometimes I need {HIDDEN} on URL parameters to pass hidden field values and sometimes not. The criteria for when I need {HIDDEN} and when I don't remain unclear. 

    Thanks for your help.  If you can give me any clarity on the above, that would be great, but I think I can get my stuff to work without it.