1. We suggest you do NOT update to Joomla 3.8.10 until we can resolve an issue it causes with caching in Fabrik. If you do install it, you'll need to disable Joomla's "System Cache" in the global System settings.
  2. Apologies for the recent server outage, a planned migration by our host provider to a new location turned into a bit of a nightmare.

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?


Share This Page