1. We apologize for the slow support at the moment. Hugh (cheesegrits) is scheduled for some major back surgery this month to repair two ruptured discs which are severely hampering his ability to work, and one of our stalwart community support members is on vacation for the month. Please bear with us.

Example Email Eval please? Can't get mine to work

Discussion in 'Community' started by bggann, Nov 23, 2011.

Thread Status:
Not open for further replies.
  1. bggann Member

    Level: Community
    Okay - been fighting this for some hours, and reading lots of the forum, experimenting, etc.

    But I'm just not getting something. Probably something very stupid.

    I've got a form that has a field (radio box). Based on the value in that field, I want to add the submitter to the email plugin. I'm trying to do that by using the email eval, but it is not triggering. The email goes to the main "to" email address, but not the additional one in the Eval.

    The table (a test table) has 2 fields of interest - an email and a radio button with labels "Send" and "Don't send" and values of "Yes" and "No"
    the submitter's email is in
    fab_testing_table___Test_email

    The send/don't send is in
    fab_testing_table___Test_choice

    My Email eval code is:

    return ({fab_testing_table___Test_choice_raw} == 'Yes') ? {fab_testing_table___Test_email} : "";

    What I expect to happen is that if the value of

    fab_testing_table___Test_choice_raw is 'Yes'

    It should return the email contained in fab_testing_table___Test_email and add that to the list of email addresses sent to.

    BTW - I know {fab_testing_table___Test_choice_raw} and {fab_testing_table___Test_email} are correct, because they are displayed in the subject line and show up in the email sent to the main "To" address.

    What am I doing wrong.
    Running Fabrik 2.1, Joomla 1.5.23 on Rochen.
Thread Status:
Not open for further replies.

Share This Page