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.

Submit Button Conditional Logic - Unable to use

  1. vandamar
    Member

    Hello
    This option is grayed out on my form. My form only contains one email field, for newsletter submission.

    I have a full developer's key. Please help.

    Thanks.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  2. vandamar
    Member

    I need to be able to hide the submit button.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  3. You have to include a select (drop down), radio or checkbox field to have something to trigger the conditional logic. The reason the option is grayed out is that you don't have any of those type of fields in your form.

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

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  4. vandamar
    Member

    So how do I hide the submit button then? Any thoughts? Thanks!

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  5. What are you trying to do exactly. If you're trying to hide the button based on some condition, you need a field with basic options.. yes/no, etc. If you're just trying to hide the submit button for some odd reason, you could do that with CSS.

    [css]
    body #gform_wrapper_1 .gform_footer input[type=submit] {display:none}
    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  6. vandamar
    Member

    Hi Kevin

    I have to put a subscribe to newsletter box in the footer of the theme i am making. I would like the submit button not to be visible there.

    Thanks

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  7. Try saving your form, then go to Edit Forms and edit your form again and then edit the field and go to the conditional logic again and let me know if it's grayed out still.

    Please note conditional logic requires a selection field to exist on your form (ex. drop down, radio button or checkbox field).

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  8. vandamar
    Member

    @Carl @Kevin. I mis-spoke. Conditional logic works. What I am trying to do is disable the submit button for 1 form, and reading through the forums it was referred to as Conditional Logic.

    Sorry for the confusion.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  9. Okay, I understand now. You would need to just hide the button with CSS. Use the example I posted above, but replace the "_1" with your actual form ID.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  10. vandamar
    Member

    Got it working. Thanks Kevin!!

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  11. isuk
    Member

    Kevin, is this targeting code also valid for multipage forms?

    body .gform_wrapper_1 .gform_footer input[type=submit] {display:none}

    for a multipage form (with id 1) doesn't hide the submit button.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  12. What are you trying to disable the submit button for? If you need to do it conditionally there is an option in the Form Settings to show/hide the submit button using conditional logic. Each Page Break also has conditional logic options for the Next button.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  13. isuk
    Member

    The {display:none} was only used to see, if the targeting code would work. My intention is to place it right in the middle under a (multipage) form on the last step (in (vertical) line with the previous button ofc).

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  14. The multi-page form structure is a little different. If you want to share a URL to your form, I can give you a working example of the CSS.

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink
  15. isuk
    Member

    Sure, please visist: http://alturl.com/2imgb

    It's a multiform with three pages. Currently under development ofc ;)

    Posted 13 years ago on Wednesday April 27, 2011 | Permalink