We have a form whose output will be emailed in plain text format to an email address, from which it will be processed via Java into a third party system (CRM).
We have modified common.php to email the data in text format not HTML so that's OK.
Currently the email administrator notification is sent in the format:
Field1: 4520 (where '4520' is just a text input
Field 2: 1 (where '1' is the boolean value of a radio button field - ie either 0 or 1)
Field3: 0 (as per Field 2)
We need to change the format of the email so it becomes:
Field1=4520
Field2=1
Field3=0
In other words we need to:
remove empty lines between fields; and
replace the ':' character and following space with the '=' char for each entry.
before the email is sent off.
To achieve this could we use the the Gform_after_submission hook in the theme's functions.php file? If so how would this be coded to reformat the notification as above?
Thanks