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.

Unable to use gravityforms action="conditional"

  1. matsilva
    Member

    I am trying to use the [gravityforms action="conditional"] in the sidebar but it doesn't seem to work for me at all.

    Is there anything we can use to have this work in a sidebar?

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  2. David Peralty

    You can't use it in the sidebar. Please read the following:

    http://www.gravityhelp.com/documentation/page/Shortcodes

    The conditional shortcode allows you to perform conditional logic in the message content of your Admin and User Notification emails as well as the Confirmation Message that is displayed when a form is submitted.

    The conditional shortcode consists of an opening and closing shortcode. Any text or content contained within the opening and closing conditional shortcode will be the content that is conditionally displayed.

    What are you trying to do?

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  3. matsilva
    Member

    I have been hacking away at display an uploaded image on pre-submission and a PayPal total price field in the sidebar.

    I found out that you can't display $_POST in the sidebar unless the form has AJAX turned off.

    However when trying to display the uploaded image it can come from 1 of 2 source. The default image upload you guys have and the Instagram upload I created myself. The problem here is that HTML fields aren't being displayed in the sidebar that I have dynamically populating within the form just fine.

    So my attempt is to duplicate this in the sidebar with the same conditional logic action I am using inside the form fields.

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  4. David Peralty

    Unfortunately, I still need more information. What do you mean by "duplicate this in the sidebar with the same conditional logic action I am using inside the form fields."

    Is your Instagram upload part of a Gravity Form? I mean, did you make it a form element? If so, couldn't regular, in form conditional logic work? I guess I still also need to understand what you were trying to do with the conditional embed tag for notifications.

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink
  5. matsilva
    Member

    No worries. What I meant was that I used the code from David over at http://gravitywiz.com/2012/08/04/better-pre-submission-confirmation/

    Here is a link to my form (Running the latest WP and Gravity Forms)
    http://bit.ly/Q0Ts2k

    The conditional logic (in the form) applies to display either an uploaded image from your computer or from Instagram. You can only choose 1 of the 2.

    The next step submits the image you upload to the form display a "Preview" of the image. This is an item I am trying to display in the sidebar. So far I am only successful with displaying the Instagram upload in the sidebar. However it works perfectly for both image upload options "inside" the form itself.

    The conditional logic only displays the image you uploaded in the preview field which is an HTML field in the form on the 2nd step.

    After turning AJAX off I am still unable to echo the HTML preview field I created into the sidebar so I attempted to use conditional logic in the sidebar as an option but that doesn't work either.

    Posted 11 years ago on Tuesday October 30, 2012 | Permalink