Works only without _raw (help to correct)

Status
Not open for further replies.

tali

Member
When adding PHP in a form rigth in the adhoc textarea, we get this help
You may specify code here, or select a PHP File, or both.​
If both, file will be included, then this code run.​
If you need to modify data submitted by the form,​
use $formModel->updateFormData('tablename___elementname_raw',$newvalue).​
Note that the '_raw' is needed!
You can use {tablename___elementname} placeholders in your PHP code​
If you are inserting content around the form (e.g. getBottomContent, getEndContent, getTopContent) then do not echo out the content, instead use return, e.g.:​
return 'hello world';​

In fact, it works without _raw as stated in php.php comment :
Code:
        /**
        * if you want to modify the submitted form data
        * $formModel->updateFormData('tablename___elementname', $newvalue);
        */
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top