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.

Wordpress post form - Enable/disable comments

  1. Nick5a1
    Member

    Hi,

    I've read this is possible. Is anyone aware how to have an option in your form which overrides the default wordpress setting to have comments enabled or disabled?

    Thanks,
    Nick

    Posted 12 years ago on Monday May 30, 2011 | Permalink
  2. Ardia
    Member

    yes i want the same thing...

    Posted 12 years ago on Tuesday May 31, 2011 | Permalink
  3. This oughta do it:

    http://pastie.org/1999750

    Posted 12 years ago on Tuesday May 31, 2011 | Permalink
  4. Nick5a1
    Member

    Hi David,

    Thanks for your reply, but what I meant was to be able to have the form submitter choose whether comments are enabled or disabled, by a radio button or checkbox question within the gravity form. Is that possible?

    Thanks,
    Nick

    Posted 12 years ago on Thursday June 2, 2011 | Permalink
  5. Easy peasy. Set up a field in your form, view the source for the ID of the form, and then update the code in your functions.php like so:

    http://pastie.org/2009430

    Posted 12 years ago on Thursday June 2, 2011 | Permalink
  6. Ardia
    Member

    thanks david...and one more request from me..if we have multiple forms ?

    Posted 12 years ago on Saturday June 4, 2011 | Permalink