Hi,
Is there an easy way to extend the current max length of data type URL ?
Currently the max length is 255. Text area length is huge, but cant be clicked on like a link.
Using URL to link to external S3 storage. Any ideas would help.
Thanks.
you can override
‘len’ => 255,
parameter in the URL type field to set it to bigger length. In DB its stored as varchar
.
1 Like
Here is a sample for a similar case you might be interested on:
3 Likes
Thanks, works like a charm!
-
file below is generated as a custom field
~/suitecrm/custom/Extension/modules/Documents/Ext/Vardefs/_override_sugarfield_storage_url_c.php
-
Added custom length
<?php
// created: 2021-01-16 04:17:03
$dictionary['Document']['fields']['storage_url_c']['inline_edit']='1';
$dictionary['Document']['fields']['storage_url_c']['labelValue']='Storage URL';
$dictionary['Document']['fields']['storage_url_c']['len']='500';
?>
- Quick Repair & Rebuild
- May need to refresh by removing & adding back field in edit & detail layout.