PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Hide 'parts' of a forms email submission

  1. Hi there,
    I have a complex form, which to be totally honest I'd like to keep using the {all_fields} option on for notifications.
    But (& I know you are going to say add each individual form entry/merge tag etc, etc...) I'd like to hide certain form fields from being sent/displayed in the email notification - without having to do that.
    Is there any other way I can somehow group certain fields (credit card details in this case) & have a display:none !important (ok, perhaps not exactly like that) but somehow keep those form fields from being sent/displayed whilst retaining the {all_fields} option?
    You see it seems that if I do that (keep the {all_fields} option) then the fields that aren't filled in by the user aren't displayed in the email (the desired result), but if I start manually adding each individual form field/merge tag to the email notification - then all fields are displayed regardless of whether or not the user has filled in those form fields - making the email notification somewhat harrowing to trawl through for the client.
    See my dilema?
    Granted - I am probably missing something here, hence my question.
    Thanks for listening :)

    Posted 9 years ago on Thursday April 4, 2013 | Permalink
  2. David Peralty

    There isn't a way to exclude fields from the all fields tag, and there currently isn't a system to do an in between like you are asking. I'll check in with the developers today to see if I missed anything.

    Posted 9 years ago on Thursday April 4, 2013 | Permalink
  3. Thanks David, thought that may be the case.
    How about something like this then.
    One form that submits its content, & then automatically forwards the user to another separate form.
    So, 1st form - purchase details.
    Second form - credit card details.
    This is actually how it's set up currently, but I know of no way to tie the two forms together (if you know what I mean).
    So the client gets both form submissions (obviously) but they don't necessarily know what credit card details belong to which order - is there a way to tie two forms together somehow - so it's easy & obvious which payment details go with each order?
    Pass some kind of field between the two (or something) I'm sure you know what I'm getting at?

    Posted 9 years ago on Thursday April 4, 2013 | Permalink
  4. You can pass values from form 1 to form 2 by using the query string redirect as the confirmation setting for form 1. Configure the query string to send the important information to form 2, and have fields in form 2 which are set "allow field to be populated dynamically". Then set the parameter name to the same name you sent in the query string. Those fields can be marked admin only or hidden if you don't want to show them to the user on form 2.

    Posted 9 years ago on Monday April 8, 2013 | Permalink
  5. That sounds perfect - thanks Chris!

    Posted 9 years ago on Tuesday April 9, 2013 | Permalink
  6. Actually, is it possible to pass the form entries URL from form 1 -> 2?
    That way the client could get the output of form 2, & also be able to click on a link within that email to the output (or entry) of form 1.
    Make sense?

    Posted 9 years ago on Tuesday April 9, 2013 | Permalink
  7. Ok, I've got the first part down;
    first={Recipients Name (First):62.3}&last={Recipients Name (Last):62.3}
    That's coming through in the URL string just fine.

    But what do I enter (specifically) into the Field Parameter Name on the second form which I'd like to be dynamically populated with those field entries?

    first={Recipients Name (First):62.3}
    last={Recipients Name (Last):62.3}
    The whole string or just part of it?

    I have those fields (on the 2nd form) set to Admin Only (so they are hidden to the user) this doesn't have any effect of those fields displaying in the email submission does it?

    As I'd like to also be able to have those dynamically populated fields appear in the email submission from the 2nd form.

    Looking through other posts - do I need to add some code to my functions.php to enable this to work?

    I know I'm close...

    Posted 9 years ago on Thursday April 11, 2013 | Permalink
  8. stevie

    any update on this ?

    I'm lookng to do the same thing..

    Posted 9 years ago on Monday June 17, 2013 | Permalink