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.

Merge Tags in entry limit message

  1. Hi All,

    I'd like to use merge tags to insert the email address provided and date of submission in the limit message for a form that is capped at one entry. This is for a private site, so no sensitive information will be publicly divulged. I have tested using the same merge tags as in the email notification, but data is not passing through - just the raw tags display. I'll be duplicating this form multiple times so the custom validation hook isn't an efficient solution to making this work.

    Any suggestions?

    Posted 7 years ago on Tuesday September 4, 2012 | Permalink
  2. I've been thinking about this one a lot. You could use the gform_pre_render filter to modify the form object, and change the $form['limitEntriesMessage'] to include the email address and date of the last submission. This is because you can't use the merge tags there.

    However, shortcodes are processed in that area, so you could create a function to return the email address and date of the last entry, and create a shortcode to pull that information.

    However, this form will only be used for one submission? Then what happens? I'm not sure what considerations you have when extending this to multiple forms.

    Posted 7 years ago on Tuesday September 4, 2012 | Permalink
  3. I'm not sure what is more efficient: the custom validation, the shortcode, or the gform_pre_render filter. Share your thoughts and more about what you're doing, and what happens after you have one submission for the form.

    Posted 7 years ago on Tuesday September 4, 2012 | Permalink
  4. Hey Chris,

    Thanks for the quick reply. Basically, I built a portal for one of my clients so that members of their marketing department can review purchase orders and submit an approval request to their boss for sign-off using one of my forms. The admin notification is actually setup to email the boss with the embed_url so he can click the link, open the PDF purchase order, digitally sign it, and click to send the signed version back by email (using Adobe's submit to email funcitonality). Because there are over 150 market pages (actually category pages) that currently have a purchase order in process, or will in the near future, the ability to use the same form is a big time saver.

    Anyway, I've been using this form without an entry limit for a while, and while it works as intended, the only negative feedback from my client is that there's no way for the marketing managers to know if a purchase order approval request has already been submitted for a given market because the form is always active.

    As for background, I've tried approaching this by restricting entries based on the submission IP address (my clients all work from the same office) with this snippit from Rob, along with a gform_field_value_$parameter_name filter to check against the category in the embed_url (this form is actually embedded in the category descriptions of multiple child-category pages, each representing a different territory and sub-market), but unfortunately no dice. I started a priority support ticket 8/16 and thought I was close to having a solution, but the ticket was actually closed last Friday because my request ended up being "a bit outside the realm of Gravity Forms".

    So, long story short, I'm back to square one with duplicating and modifying this form for each category page. It is less efficient, but it looks like the only way to limit the number of entries and replace the form with an "already submitted" notification so the marketing managers know what has been processed and what is still outstanding. My desire to use merge tags to pull the email address and date into the notification message is so there will be a record of who submitted the approval request and a time-stamp for when it was submitted.

    To avoid having to add new functions/filters each I duplicate the form, I'm thinking that a shortcode might be the best approach here, but I'd like to get your thoughts based on my usage scenario.

    Please let me know if any additional info would be helpful. Thanks!

    Posted 7 years ago on Tuesday September 4, 2012 | Permalink
  5. Let me read that offline tomorrow over a cup of coffee. Maybe we can come up with something.

    Posted 7 years ago on Wednesday September 5, 2012 | Permalink