1. Fabrik 3.8.1 has been released. It is mostly bug fixes and feature enhancements, but does include two new plugins (push notifications, and the sequence element). As usual we strongly recommend testing the new release on a sandbox if your application is mission critical, and always do an Akeeba backup before updating.
    Dismiss Notice

status change and email notification

Discussion in 'Community' started by germanoalves, Apr 30, 2018.

  1. germanoalves

    germanoalves New Member

    Level: Community
    I would like an help for my question:

    in a form I have a dropdown field as follows:
    1 - published
    2 - analyzing
    3 - rejected.

    How do I, when I edit these statuses, that the email that registered with this form receives an email informing that its status is now another?

    thanks! :)
     
  2. achartier

    achartier Active Member

    Level: Community
    Add a form email plugin. On the Options tab for the plugin you will see a Condition box. Compare your var in $data to $origData and if equal return false, otherwise return true to send the email. You will probably need to use your full tablename___elementname, but insert a print_r($data); exit; and see how the elements are named.
     
    troester likes this.
  3. germanoalves

    germanoalves New Member

    Level: Community
    It's ok! Thank you for your help! I will test and review the results
     
  4. germanoalves

    germanoalves New Member

    Level: Community
    I tried the following way: But I could not. :(

    if ('{cadastro_colaboradores___status}' == '1') {
    return true;
    }
    elseif ('{cadastro_colaboradores___status}' == '2')
    {
    return false;
    }

    The status 1 is published and 2 - analyzing.

    Could you help me in writing the condition?

    thanks!
     

Share This Page