status change and email notification

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! :)
 
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.
 
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!
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top