Could I change the fieldnames with this file before saving to CSV?
https://www.ads-software.com/support/topic/field-names-and-dynamic-fields/
“The code to use in the ‘cp_calculatedfieldsf_insert_in_database.php’ file would be:”
<php
if($params[ 'formid' ] == 1)
{
$_POST['address'] = $params['fieldname2'];
$_POST['username'] = $params['fieldname4'];
}
elseif($params[ 'formid' ] == 2)
{
$_POST['address'] = $params['fieldname8'];
$_POST['username'] = $params['fieldname2'];
}
/** CALL YOUR SERVER SIDE CODE HERE **/
Does this file work inbetween the collection of data and the other operations on submit like sending emails, saving as CSV, etc? Example, Submit–>Change fieldnames–>Save as CSV and send email.
Would all I need to do is change my form number and match the new fieldnames in the $_POST to the ¶ms?
-
This reply was modified 3 years, 12 months ago by
phixate.
-
This reply was modified 3 years, 12 months ago by
phixate.
-
This reply was modified 3 years, 12 months ago by
phixate.
-
This reply was modified 3 years, 12 months ago by
phixate.
-
This reply was modified 3 years, 12 months ago by
phixate.
-
This reply was modified 3 years, 12 months ago by
phixate.