I’m trying to output a json after submitting to formit
I have an input field named “file” and would like to return the name after submitting the form
it returns empty with the code below but in the email that get’s sent the name of the file is there.
what do I need to change in the code below?
[[!FormIt?
&hooks=`spam,email`
&emailTpl=`product_fd_email_tpl`
&emailTo=`jeremiah@thefutureforward.com`
&emailFrom=`jeremiah@thefutureforward.com`
&emailSubject=`Request for 3 Part Guide Spec`
&validate=`nospam:blank,
full-name:required,
email:email:required,
phone:required`
&successMessage=`success`
]]
{
"status": "[[+fi.successMessage]]",
"error": "[[!+fi.validation_error_message:notempty=`[[!+fi.validation_error_message:striptags]]`]]",
"file": "[[!+fi.file]]"
}