Using onAfterProcess brings back a link with date and not date

softforge

Member
Hi,
I am making up the body of an email which has a lot of conditions. So I am using onAfterProcess so I can assess the form answers and depending on some of them, send different email bodies.
One field is a date field
if($formData[app___date_time]){$body .= "Date of the form is " . $formData[app___date_time] . "\n";}
But instead of getting the value back I get
<a data-loadmethod="xhr"
class="fabrik___rowlink fabrik_edit"
data-list="list_19_com_fabrik_19"
data-isajax="0"
data-rowid=""
data-iscustom="0"
href="/guidance/apply-for-an-sbd-award/sbd-award-application-form/form/19/"
>
2018-07-30 12:14:29</a>
How can I get just the date back to send in the email?
 
Also, quote the index ... $formData['app___date_time_raw'].

It'll kinda work without, but it'll be throwing PHP warnings about "assuming string".

-- hugh
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top