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.

Retrieving label from the database of a form

  1. In the documents supplied by GF you have a sample of getting the value of the database but is their a way to get the labels of each of theses values ?

    thanks

    Posted 13 years ago on Thursday June 10, 2010 | Permalink
  2. Currently you can only retrieve the value of the fields. If you are manually creating a notification email using these field variables you would have to manually type the label of the field when creating your notification template.

    Posted 13 years ago on Thursday June 10, 2010 | Permalink
  3. My battle with the notification emails continues...

    Also I need to have is just a plain text email that shows the label of a submitted form field (the admin label would be ideal actually), then on the same line the value entered. The key being it would only show each line if it contained data.

    This doesn't seem that complex at all, but after hours of searching the forums, hacking the code, strangely it seems Gravity Forms has no way of doing this. Seems so simple, but it can't be done as far as I can see. Any ideas!??

    Thanks!
    Trevor

    Posted 13 years ago on Thursday November 4, 2010 | Permalink
  4. Gravity Forms does not send plain text emails, it only sends HTML emails.

    You can send plain text but you would have to change the Gravity Forms core plugin files to do so and set the content type to plain text for the emails that are sent.

    We do have plain text emails as one of the items on our to do list.

    Posted 13 years ago on Thursday November 4, 2010 | Permalink
  5. Excellent! But more importantly, any chance of getting the label / admin label to show up in notification email? And then if that is possible, any chance of an option to not display blank fields? Right now I am having to manually enter the "label" for each field in the email notification and then of course I get a lot of lines with "labels" but no data as I have an order form with 50+ fields.

    Hence my idea above! :) For now onwards with 'manual' labour.

    Posted 13 years ago on Thursday November 4, 2010 | Permalink