How to attache doc in Opportunities form ?

We want to upload a quotes or document direct in opportunities form. I know we can add though history panel as Create note or attachment but i need on upload field on opportunities oppcreating time. Pls help me
Parents
  • it is not working. we create a new file with name sugarfield_upload_file_c.php in this directory custom/Extension/modules/opportunities/Ext/Vardefs/.

    It contains code 

    <?php$dictionary['Opportunities']['fields']['upload_file_c'] = array(
        'name' => 'upload_file_c',
        'vname' => 'LBL_FILENAME',
        'type' => 'file',
        'len' => '255',
        'required'=>false,
        'comment' => 'Add Attachment'
    );

    Please help me.
Reply
  • it is not working. we create a new file with name sugarfield_upload_file_c.php in this directory custom/Extension/modules/opportunities/Ext/Vardefs/.

    It contains code 

    <?php$dictionary['Opportunities']['fields']['upload_file_c'] = array(
        'name' => 'upload_file_c',
        'vname' => 'LBL_FILENAME',
        'type' => 'file',
        'len' => '255',
        'required'=>false,
        'comment' => 'Add Attachment'
    );

    Please help me.
Children
No Data