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.

Hidden field user notification

  1. Derk
    Member

    I have a quick question regarding hidden fields and the {all_fields} tags:

    I have set up a form with a couple of fields including a hidden field wich is dynamically populated. I want to use the {all_fields} tags for the user notification, but this includes the hidden field wich i dont want users to see. The thing about building my own notification is that my form includes quite a few fields with conditional logic ... my notification would include a lot of blank fields. The {all_fields} (wich only includes filled in fields) is the better option, except for the fact that it includes the hidden field.

    The actual question: How can i exclude a hidden field from the user notification (and include it in the admin notification of course)?

    Posted 13 years ago on Monday October 17, 2011 | Permalink
  2. Instead of a hidden field, can you use an admin only field? That will not be included in the notification.

    Posted 13 years ago on Tuesday October 18, 2011 | Permalink
  3. Derk
    Member

    Chris,

    I must be doing something wrong because the admin field is showing up in the user notification, when set to {all_fields}.

    Any idea?

    Posted 13 years ago on Tuesday October 18, 2011 | Permalink
  4. There was a bug in a recent version. Which version are you using?

    I'm having a hard time finding where that's documented, but I think it was a bug and has been fixed, but I'm wondering which version you're having the problem with.

    Posted 13 years ago on Tuesday October 18, 2011 | Permalink
  5. It's possible I am remembering it incorrectly. I will ask the other guys what the current status is. Please see this

    http://www.gravityhelp.com/forums/topic/limiting-all_fields-output-on-user-notification#post-29688

    I thought that had been added (the ability to add admin fields if you needed them) which makes me think it was fixed.

    Hmmm, this is in the changelog for 1.6beta1:

    Create new merge tag for displaying Admin labels on notifications(create {all_fields:admin_label} and make it more flexible)

    Posted 13 years ago on Tuesday October 18, 2011 | Permalink
  6. Derk
    Member

    Chris,

    I'm using 1.6.rc4 of gravity forms.

    Posted 13 years ago on Friday October 21, 2011 | Permalink
  7. You are correct, the admin only fields are being showed when you use the all_fields helper. You're not doing anything wrong, and I apologize for the misinformation.

    I updated this topic:
    http://www.gravityhelp.com/forums/topic/limiting-all_fields-output-on-user-notification#post-38534

    I am also checking with other members of the team to see what the status of this is.

    Posted 13 years ago on Friday October 21, 2011 | Permalink
  8. Getting back to the original problem though, crafting a custom notification but not sending empty fields. You can do this with a little work in your functions.php. Here's an example where I did something similar.

    http://gravity.chrishajer.com/request-a-brochure/

    Code:
    http://pastebin.com/CwsM2FjF

    You can use a similar approach to modifying the notification email.

    There is an example here where someone did something similar with over 100 fields, but I can't find it right now. It was a job application or application of some sort.

    Posted 13 years ago on Friday October 21, 2011 | Permalink
  9. Derk
    Member

    Any chance of this getting added to Gravity anytime soon?

    Manually creating confirmation emails for huge forms is a pain in the ass :-)

    Posted 13 years ago on Monday November 7, 2011 | Permalink
  10. It's being considered for inclusion in a future version, but there is no timeline set.

    Posted 13 years ago on Tuesday November 8, 2011 | Permalink