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.

Conditional shortcode displays in Confirmation msg but not in email

  1. pinepub
    Member

    I am using the exact same Conditional Shortcodes for my Confirmation message and for my Email notification. The results display fine on the Confirmation page but do not display at all in the Email notification message. (The input field is a checkbox)
    ------------------------------------------------
    [gravityforms action="conditional" merge_tag="{Number:22}" condition="isnot" value=""]
    Confirmation message
    [/gravityforms]

    Posted 11 years ago on Friday January 25, 2013 | Permalink
  2. I'm having a similar problem that seems to be tied to double quotes. We have a form with a text field that gets displayed on the confirmation page and in the notification. If there are double quotes around the text entered, e.g. "This is the title I need", then the notification treats the text as if it were "" and does not include it, when using a conditional shortcode like the one above. However, the title does display on the confirmation page after submitting the form. We are running GF 1.6.11 in WP 3.4.2. In the admin side, I can see that the field is saved for the entry with the double quotes in it. If I edit the entry and remove the quotes from the text field. Then resending the notifications does include the text field.

    Posted 11 years ago on Monday January 28, 2013 | Permalink
  3. @pinepub, can you please export that form and email it to me at chris@rocketgenius.com

    To export the form, go to Forms > Import/Export > top center menu item "Export Forms"

    Then attach the XML file to an email to me. I would like to test your form. Thank you.

    Posted 11 years ago on Tuesday January 29, 2013 | Permalink
  4. I have seen this issue with both text and text area fields that have double quotes entered anywhere in text submitted.

    Posted 11 years ago on Monday February 4, 2013 | Permalink
  5. @pinepub, I was taking a look at your form and there are a few HTML problems which need to be cleaned up before we can go any further. You can validate the page on your site where the form resides using this validator http://validator.w3.org/

    Some things I noticed straight away:

    • There are quite a few comments with invalid markup. Comments should begin <!-- with a space before the comment, and also a space before the closing -->
    • There are quite a few invalid br tags: the only valid br tag for xhtml is
      <br />

      With a space before the closing slash. You have some with no closing slash and some with no space before the slash.

    • The logos are all missing alt tags. That will not create a problem for your form, but the page will fail validation without the alt tags
    • You have a few divs inside strong tags (twice I think.) You can't put a block element (div) inside an inline element (strong style=", etc)
    • There is a missing closing div somewhere but I could not narrow it down.

    After you fix that HTML we will be closer.

    I noticed the last field you added to the test form (T222test) did not have the "show values" box checked, which made it act differently than all the other fields. The label and value were also different, making it act different as well. I know it was only a test field but it was confusing to have to deal with it differently.

    You said that the confirmation was correct but the notification email was not. However, when I checked all the boxes on Wednesday and Thursday both (14 checked fields on each day) the confirmation did not show all 14 as being checked. I believe there were 10 on Wednesday and 11 on Thursday in the confirmation.

    After you get the HTML closer to valid we can take another look.

    Posted 11 years ago on Wednesday February 6, 2013 | Permalink