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
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
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
Kristjan,
At this time, it is not possible to create a file-type field within Studio. The steps that Dan Kallish provided will work but you will need to have access to the file system to make the change or create a module loadable package to install via Module Loader.
Lori
Kristjan,
At this time, it is not possible to create a file-type field within Studio. The steps that Dan Kallish provided will work but you will need to have access to the file system to make the change or create a module loadable package to install via Module Loader.
Lori