Tank you for this great tool!
I try to send an email dynamicly. (How to send an Email dynamically)
The Code from CF V4 is not working any more.
<?php
if ( !empty($form->data['input_checkbox_1']) && ($form->data['input_checkbox_1'] == '1') ) {
$form->set("email_77", "enabled", 1);
}
?>
$form->set => gives an error!
Which new code we have to use with CF V5?
Peter
I try to send an email dynamicly. (How to send an Email dynamically)
The Code from CF V4 is not working any more.
<?php
if ( !empty($form->data['input_checkbox_1']) && ($form->data['input_checkbox_1'] == '1') ) {
$form->set("email_77", "enabled", 1);
}
?>
$form->set => gives an error!
Which new code we have to use with CF V5?
Peter
Hello peter.wirth,
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How to send an Email dynamically
How do I send an email to an admin?
How do I send an email to the user?
How can I send an email to different addresses?
P.S: I'm just an automated service😉
I'm not a Chrono professional, but after checking your new post, I think that the following links may help:
How to send an Email dynamically
How do I send an email to an admin?
How do I send an email to the user?
How can I send an email to different addresses?
P.S: I'm just an automated service😉
There are no answers at the 4 topics above! I check all of them.
Hi Peter,
Correct, in v5 this line of code:
should be:
Where 77 is the action id, its shown beside every action's title under the setup area!
So, if the line above is placed inside a "custom code" action BEFORE some action which is not enabled and has id 77, then the action will be enabled in runtime and will be processed.
Regards,
Max
Correct, in v5 this line of code:
$form->set("email_77", "enabled", 1);
should be:
$form->actions_config[77]["enabled"] = 1;
Where 77 is the action id, its shown beside every action's title under the setup area!
So, if the line above is placed inside a "custom code" action BEFORE some action which is not enabled and has id 77, then the action will be enabled in runtime and will be processed.
Regards,
Max
Thank you! It's working well!
This topic is locked and no more replies can be posted.
