Increment number of characters

Hello! I encountered such a problem, I need to increase the number of characters in the field, by default it costs 255, changed it in the database, but going into crm still costs 255, how can I change this?

First you need to modify the field structure.

I posted a sample on how to increase the field length on the last post on this:
https://suitecrm.com/suitecrm/forum/feedback/9301-7-5-3-reports-module-one-of-selection-limit-of-19-positions-in-report-definition#78982

and where exactly do you need to create the directory? in unix?

I did as you described here
create a new field, put the number of characters more than 255, save, go to the field anyway 255

First of all field has to exist in Studio or you can create it from there.

Based on the sample, you to create a php file on this directory: /custom/Extension/modules/YOUR-MODULE/Ext/Vardefs/value.php
(Directory doesn’t exists by default so you need to create it manually)

Copy/Paste this code (In my case I increased it to 1100. You can accommodate it to your needs):

<?php
 // custom vardef to increase field length. 
$dictionary['YOUR-FIELD-HERE']['fields']['value']['len']='1100';

 ?>

Thanks,

AlxGr

I did everything, but when I create the field, I still have 255

What version are you using?

7.10.14

Interesting. I have tested on the same version and all worked fine to me. Please make sure you are following the right steps.

Sorry, the version is incorrect.
the correct version is 7.11.4 here
Here are the screenshots, tell me what I’m doing wrong
http://prntscr.com/osg7f3
http://prntscr.com/osg7xw

First there was an error on my previous sample so I’ll correct here.
Now, based on your screenshots, you are doing it on the wrong folder.

First you need to create the field (YOUR-FIELD-NAME) in Studio on YOUR-MODULE (This can be any module you are trying to add the field to)

Then you to create a php file on this directory: /custom/Extension/modules/YOUR-MODULE/Ext/Vardefs/value.php
(Directory doesn’t exists by default so you need to create it manually)

Copy/Paste this code (In my case I increased it to 1100. You can accommodate it to your needs):

<?php
 // custom vardef to increase field length. 
$dictionary['YOUR-MODULE']['fields']['YOUR-FIELD-NAME']['len']='1100';

 ?>

Thanks,

Thanks, but I didn’t fully understand
I will describe in more detail
I have already created a module, it has URL type fields, I need to increase the number in it with a character
I need to do everything that you described only the place YOUR-MODULE write the name of the field type URL?

  • YOUR-MODULE is the module you are changing.
  • YOUR-FIELD-NAME is the field you are adding.

Don’t know if you have previous experience on programing. If not or if you need more help please send me an email and I will be able to help you.

Thanks,

AlxGr

Unfortunately not(
tell me your mail, if you have questions, I will write to you
give thanks!

ctmprogra @ ondsystems . com