ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to turn off comment notification?

August 05, 2011 5:31pm

Subscribe [2]
  • #1 / Aug 05, 2011 5:31pm

    P.J.

    158 posts

    In the default comment form template, there is a line for comment notification:

    <input type="checkbox" name="notify_me" value="yes" {notify_me} /> Notify me of follow-up comments?

    However, setting the value to “no” or “” does nothing to turn off the notification as the default.

    There is a similar thread on this for EE2:

    http://ellislab.com/forums/viewthread/186930/

    What is the fix? How do I change the default for the checkbox so that it is not checked automatically?

  • #2 / Aug 07, 2011 10:45am

    Dan Decker

    7338 posts

    Hi P.J.

    Have you tried removing the {notify_me} tag from your form input code? So that the resulting code would look similar to this:

    <input type="checkbox" name="notify_me" value="yes" /> Notify me of follow-up comments?

    Taking out the {notify_me} tag should prevent the checkbox from being automatically checked.

    I hope this helps,

  • #3 / Aug 07, 2011 3:26pm

    P.J.

    158 posts

    Thanks. I will try this out.

    So is the value=“yes” sent ONLY if the user then “rechecks” the box?

    Also, what is the value sent to that variable if the user unchecks the box? ‘cause I tried “No” or “”, but neither of the latter values works.

  • #4 / Aug 08, 2011 5:10pm

    Brandon Jones

    5500 posts

    So is the value=“yes” sent ONLY if the user then “rechecks” the box?

    Correct.

    Also, what is the value sent to that variable if the user unchecks the box? ‘cause I tried “No” or “”, but neither of the latter values works.

    Browsers do not send unchecked checkboxes at all. Let us know if Dan’s solution works for you!

  • #5 / Aug 08, 2011 8:34pm

    P.J.

    158 posts

    Thank you. The solution works.

  • #6 / Aug 09, 2011 5:21pm

    Dan Decker

    7338 posts

    Good to hear P.J.!

    Come back to the forums if you need any assistance in the future.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases