Hi BNRBranding,
I just built a test form and connection and tried for an hour or so to get this to work and so far I've failed . . . update, I've just found a possible fix.
The problem is that ChronoForms evaluates the 'body code' before it substitutes the field values*. So none of the PHP in the body section can be set using the {field_name} syntax.
You can however access these values using $MyRow->field_name and this seems to work OK.
e.g. $new_name = $MyRow->uw_name; // set the new name
Bob
* PS It's also possible to hack the CC code to do the substitution first - that also works but might have other side effects.
I just built a test form and connection and tried for an hour or so to get this to work and so far I've failed . . . update, I've just found a possible fix.
The problem is that ChronoForms evaluates the 'body code' before it substitutes the field values*. So none of the PHP in the body section can be set using the {field_name} syntax.
You can however access these values using $MyRow->field_name and this seems to work OK.
e.g. $new_name = $MyRow->uw_name; // set the new name
Bob
* PS It's also possible to hack the CC code to do the substitution first - that also works but might have other side effects.