bespokeappstt
Hubstaff freelancer
I have a form that sends an email once there is a successful submission.
At first there was only one re-direct plugin on the form and the condition was when 'Paypal Testing Only' was NOT selected. Everything worked fine, the page re-directed and the email was sent. The moment I introduced a second re-direct plugin for the condition when 'Paypal Testing Only' was selected the email on submission stopped working for both re-directs and the first re-direct stopped working. So the re-direct now ONLY works when you choose 'Paypal Testing Only' but the email is not sent. Additionally I have noticed text appearing on the submission page that I did not configure. The text
Appears in addition to the submission text I have specified and I don't know where that came from. So it looks like you are not allowed to have 2 re-directs on the same form or something is wrong with my condition which I doubt cause the second re-direct works fine. But for the purpose of detail here are the two conditions:
When Paypal Testing Only is not selected:
When Paypal Testing Only is selected:
I need some help with this, looks like a bug or something.
Code:
https://www.caribbeanskills.com/index.php/2016-02-19-17-39-02/trade-skills
At first there was only one re-direct plugin on the form and the condition was when 'Paypal Testing Only' was NOT selected. Everything worked fine, the page re-directed and the email was sent. The moment I introduced a second re-direct plugin for the condition when 'Paypal Testing Only' was selected the email on submission stopped working for both re-directs and the first re-direct stopped working. So the re-direct now ONLY works when you choose 'Paypal Testing Only' but the email is not sent. Additionally I have noticed text appearing on the submission page that I did not configure. The text
Code:
Record added/updated
When Paypal Testing Only is not selected:
Code:
$myCondition = $formModel->formData['payment_method_paid_via'];
$myCondition = is_array($myCondition) ? $myCondition[0] : $myCondition;
return $myCondition != '12';
When Paypal Testing Only is selected:
Code:
$myCondition = $formModel->formData['payment_method_paid_via'];
$myCondition = is_array($myCondition) ? $myCondition[0] : $myCondition;
return $myCondition == '12';