Attachment field

I'm looking to create an ''attachment'' field in a module. Same thing as the field ''File Name'' in the ''Documents'' module.

How can I do that?

Thanks

Parents
  • Hello Dave,

    This was tested in Sugar 7.6.1.0 Professional:

    1. Login as a System Administrator.

    2. Navigate to Admin > Studio > {Sidecar Module such as Accounts} > Fields.

    3. Click 'Add Field'.

    4. Create a new TextField type field and add it to the Record View.

    5. In the Sugar File System, locate the following file:

    ./custom/Extension/modules/{Module}/Ext/Vardefs/sugarfield_{Field Name}.php

    6. Modify this file and add the following line, making the necessary adjustments:

    $dictionary['Account']['fields']['{Field Name}']['type']='file';

    7. Return to the Sugar application and navigate to Admin > Repair.

    8. Select 'Quick Repair and Rebuild'.

    When you create or edit a record in the module where you added the field, it will now display and behave as a File type field that allows you to upload attachments.

    Regards,

    Dan Kallish

    Advanced Support Engineer

    SUGARCRM

    Learning Resources: http://support.sugarcrm.com | http://university.sugarcrm.com | http://community.sugarcrm.com

Reply
  • Hello Dave,

    This was tested in Sugar 7.6.1.0 Professional:

    1. Login as a System Administrator.

    2. Navigate to Admin > Studio > {Sidecar Module such as Accounts} > Fields.

    3. Click 'Add Field'.

    4. Create a new TextField type field and add it to the Record View.

    5. In the Sugar File System, locate the following file:

    ./custom/Extension/modules/{Module}/Ext/Vardefs/sugarfield_{Field Name}.php

    6. Modify this file and add the following line, making the necessary adjustments:

    $dictionary['Account']['fields']['{Field Name}']['type']='file';

    7. Return to the Sugar application and navigate to Admin > Repair.

    8. Select 'Quick Repair and Rebuild'.

    When you create or edit a record in the module where you added the field, it will now display and behave as a File type field that allows you to upload attachments.

    Regards,

    Dan Kallish

    Advanced Support Engineer

    SUGARCRM

    Learning Resources: http://support.sugarcrm.com | http://university.sugarcrm.com | http://community.sugarcrm.com

Children