1. Fabrik 3.9 has been released. If you have updated Joomla to 3.9, this is a required update.
    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