Custom-Fields lenght

Get help from other users here.

Moderators: Developer, Contributor

Post Reply
web24
Posts: 17
Joined: 18 Jan 2017, 10:59

Custom-Fields lenght

Post by web24 »

hi,
i can't find where i can change the number of characters for custom-fields.
for example:
i have a new textfield and now i want a detailed statement for this field but after about 55 characters is end.
how can i change the number to a higher level, so around 100.

thx
geri
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Custom-Fields lenght

Post by atrol »

Are you talking about the name of the field or the values that are entered?
Please use Search before posting and read the Manual
web24
Posts: 17
Joined: 18 Jan 2017, 10:59

Re: Custom-Fields lenght

Post by web24 »

hi atrol,
only the name of the field!

thx
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Custom-Fields lenght

Post by atrol »

Custom field names are limited to 64 characters.
You would have to change database schema to change this.

Have also a look at the filter section of "View Issues" page to see that having very long names for custom fields is questionable in terms of the current screen layout.
Please use Search before posting and read the Manual
web24
Posts: 17
Joined: 18 Jan 2017, 10:59

Re: Custom-Fields lenght

Post by web24 »

hi atrol,
i use html (<br>) to have a second row in the new custom field (it looks fine for us) and at the filter section it is no problem with the length.
the only thing at filter section is that the title can't handle the html and so the <br> is plain text.

can you explain me where in the database i have to change this limit?
i have searched but can't find it.

and another question is it planed for a future release to have instead of custom-field "date" a "calendar"?

thx
geri
atrol
Site Admin
Posts: 8536
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: Custom-Fields lenght

Post by atrol »

web24 wrote:can you explain me where in the database i have to change this limit?
You would have to change field "name" of database table "mantis_custom_field_table"
Changing the database schema is just one step.
After that, some more minor changes might be needed.

Be aware that changing the database schema might introduce issues when upgrading to newer MantisBT versions.
The same applies to any other changes in original source code.
web24 wrote:is it planed for a future release to have instead of custom-field "date" a "calendar"?
This is a known feature request, see https://www.mantisbt.org/bugs/view.php?id=8957
Please use Search before posting and read the Manual
web24
Posts: 17
Joined: 18 Jan 2017, 10:59

Re: Custom-Fields lenght

Post by web24 »

hi atrol,
thank you for your detailed answer.
we have now a shorter statement for this field so we don't need to chanche code and database.

thx
geri
Post Reply