1. Hugh (cheesegrits) here. Thank you for all the good wishes. My back surgery was a success, post-op recovery is going well, and I'm getting stronger and feeling better every day. I hope to be getting back in the saddle and working support again over the next few days.
  2. IMPORTANT NOTE - we have made some changes in our github branch naming. The 'master' branch no longer exists, and is now called 'joomla25' (which is Fabrik 3.0). The 'joomla3' branch (which is Fabrik 3.2) remains unchanged. We have also removed all the other testing branches which had accuulated over the last few years. I have posted a thread in the Community forum for 3.0 with some more information, feel free to as questions there.

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