AnsweredAssumed Answered

Web to Lead Form with Attachment / Upload Field

Question asked by Jason Roque on Feb 24, 2017
Latest reply on Feb 25, 2017 by Hemant Patil

I want to add a custom file upload / attachment field for the Web to Lead form.


I know Notes and Documents have attachment fields but I don't know how to create a web form for those modules and to my understanding Leads is the only module with the ability to have a form on the web.


I have added custom fields for the Leads Module in the (Admin > Studio > Leads ...). The fields are present on Detail View, Edit View, etc. but when I try to Save the Lead, the uploaded file is not saved and left blank.




$dictionary['Lead']['fields']['file_mime_type'] = array(
'name' => 'file_mime_type',
'vname' => 'LBL_FILE_MIME_TYPE',
'type' => 'varchar',
'len' => '100',
'importable' => false,
$dictionary['Lead']['fields']['file_url'] = array(
'name' => 'file_url',
'vname' => 'LBL_FILE_URL',
'type' => 'function',
'function_class' => 'UploadFile',
'function_name' => 'get_upload_url',
'function_params' => array('$this'),
'source' => 'function',
'reportable' => false,
'importable' => false,
$dictionary['Lead']['fields']['filename'] = array(
'name' => 'filename',
'vname' => 'LBL_FILENAME',
'type' => 'file',
'dbType' => 'varchar',
'len' => '255',
'reportable' => true,
'importable' => false,


Basically, the upload fields I am using are not adding those uploaded files to my Lead submission.  Any help would be great, thanks!