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.

Form value not posting in notification

  1. Im using 1.5 rc

    I have set up a checkbox questionnaire, and each question has a YES value assigned to it as the posting answer.

    I created the following in the email notification:

    Any disorder of eyes, ears, nose or throat, including speech impairment or loss of sight? {Any disorder of eyes, ears, nose or throat, including speech impairment or loss of sight?:22.1}

    That is:

    The Question {The Questions Value Field}

    If a person selects the checkbox of the question answers, and I assign a value of YES to it, when I set up the notification, should it so the answer YES is the checkbox was selected?

    If SO, that is not working properly.

    When I select the proper checkbox in the form, the notification leave all blank, even the ones that were checked off.

    I hope you can understand my issue.

    Please Advise.

    Posted 8 years ago on Sunday March 20, 2011 | Permalink
  2. It's not 100% clear. Do this, update your Notification Message so it uses this form field variable as the Message Body:

    {All_Fields}

    This will create a nicely formatted table of all form field data submitted in the form as the email body for your notification. Test with that and see if the values are output.

    Posted 8 years ago on Monday March 21, 2011 | Permalink
  3. Yes, this was discussed in a previous post, and I was told to use each field independently.

    Basically what I am trying to accomplish is a medical health questionnaire, just like going to a physician office for you initial visit.

    It asks you a questions and have 10 checkmark responses if you have these symptoms.

    In the notification, I want it to show the entire questions and the answer. I have made the VALUE of each checkbox question YES, so that should mean if its selected, its value is YES.

    In the notification, I would type the answer and then the Value Code, IE:

    Do you have any of these symptoms?

    Back pain: {question field value}
    headache: {question field value}
    etc..etc..

    So, in the notification, if they checked off the box on the form, it should place the value of YES in the question field value.

    It does not.

    Hope that is a better explanation.

    Please advise.

    Posted 8 years ago on Monday March 21, 2011 | Permalink
  4. By default Gravity Forms outputs the label of checkboxes, radio buttons and drop downs. This is because the label is typically the text that is user friendly, the value is sometimes not user friendly and may be used for processing form data programmatically.

    But you can still access the value for the field by appending :value to the form field variable.

    So for example if your form field variable was this:

    {My Question:1}

    You would modify it so it was this:

    {My Question:1:value}

    That should output the value for that field.

    Posted 8 years ago on Monday March 21, 2011 | Permalink
  5. {My Question:1} vs. {My Question:1:value}

    Useful bit of information there Chris...might be a good idea to put it into the Developer Docs as a small side-point.

    It's good to know if you want something conversational for the user, but something short for the recipient.

    e.g.

    I'm a Developer (lab) - Developer (val)
    I'm an Agent (lab) - Agent (val)
    I'm looking for Funding (lab) - Funding (val)

    Used the labels on the form drop-down, but used the values in the notification to the company; in the subject, followed by " Enquiry"

    Posted 8 years ago on Monday March 28, 2011 | Permalink