1. Hugh is now back at work, more or less full time, after a slower than expected recovery from his neck surgery early this month. Obviously we have a backlog of support to clear, and are working as hard as we can to take care of it. If you have an unanswered thread more than 3 days old, please post one (and only one) "bump" on it, to move it in to our "last 3 days" list. If you have an unanswered issue in a forum you no longer have access to due to subscriptions timing out, please use the Contact Us form, and provide us with the URL to the thread.

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