Hello,
I need to use a link (Google Docs Document) as “File Name” field in Document module.
I know that the best scenario is a complete integration with google docs, but because these application (app) is is only available in sugarcrm proffesional iam looking for a workaround:
- Create an extra field in Documents with studio to paste google doc link.
- Change the “File Name” field (were u upload a file) in document module to don´t be mandatory in the layouts and subpanels?
Changing the “File Name” field not to be mandetory can not be done in Studio, so we need a code solution.
Now i found this topic: change fieldname not to be mandetory what described:
Create a file under:
/custom/Extension/modules/Documents/Ext/Vardefs/sugarfield_document_uploadfile.php
There write a code like:
< ? php
$dictionary['Document']['fields']['uploadfile']['required']=false;
$dictionary['Document']['fields']['filename']['required']=false;
? >
Then run a repair / rebuild.
But when i run repair / rebuild i get this error:
Parse error: syntax error, unexpected ‘<’ in /home/crmkokow/public_html/custom/modules/Documents/Ext/Vardefs/vardefs.ext.php on line 16
Does any one know the right way to change the “File Name” field (and file upload) in document module not to be mandetory.
BR Martijn