I've made a practice installation of a Fabrik form here: http://www.haircolourgenie.hairdressingworld.com/index.php?option=com_fabrik&view=form&formid=5
At the "end of form submission" I have placed the following php code:
I have done the above to see if it will trigger the 'return', but that doesn't happen.
I've tried echo instead of return, and I have tried replacing the {} with () too.
I've searched and searched the forums - will I ever get the hang of this? Please can somebody point out what I have done incorrectly?
At the "end of form submission" I have placed the following php code:
Code:
$target = $formModel->getElementData'{search___TARGETSHAD}';
if ($target == "10") {
return "Have a good day!";
}
I have done the above to see if it will trigger the 'return', but that doesn't happen.
I've tried echo instead of return, and I have tried replacing the {} with () too.
I've searched and searched the forums - will I ever get the hang of this? Please can somebody point out what I have done incorrectly?