WordPress.org

Ready to get started?Download WordPress

Forums

SpeakUp! Email Petitions
[resolved] Help needed with class.mail.php syntax (2 posts)

  1. bfagan
    Member
    Posted 1 year ago #

    First, let me say I'm not a coder, more of a cutter/paster.

    I've been asked to set up multiple petitions, one per sports group, to petition our local officials. They wanted the custom field on each petition to be a drop down. The label of the field is "I am a downtown little league" then the dropdown values are "parent", "player", "friend". Same for soccer league "I am a downtown soccer league" "parent","player","friend". There are 7 groups, therefore 7 petitions. (We want the elected officials to understand the affiliations as to where the mails are coming from). Through this help forum, I was able to implement the dropdown.

    In the petition e-mail, it includes the value of the custom field in the mail signature, so it's showing up as:
    John Doe
    jdoe@blah.com
    parent

    What I'd like to do is include the custom field lable and the value so that it shows up as:
    John Doe
    jdoe@blah.com
    I am a Downtown Little League Parent

    I just don't know how to get that variable name echoed into the signature.

    Thanks in advance for any help.

    http://wordpress.org/extend/plugins/speakup-email-petitions/

  2. bfagan
    Member
    Posted 1 year ago #

    Figured it out myself. wasn't realizing that custom_field_label was on the petitions table, not the signature.

    If anybody cares, it actually worked out really well.

    Instead of using the custom_field_label and custom_field (value) in the signature, I moved it up into the greeting. So now the Petition starts with my constant greeting followed by my custom valued field. so looks like this:

    Dear Elected Officials,
    I am a Little League Parent
    blah blah blah

    or

    Dear Elected Official
    I am a Little League Player

    and as mentioned above (again, if anyone cares) I set up 7 similar petitions, so our officials will be receiving virtually the same petition with the league affiliation and constituent group up top.

    you're welcome, me

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.