set max length attribute on field

juan casas
Mega Expert

hi experts!!

 

I am trying to overwrite the max length set on the task table

find_real_file.png

 

I set the following to see if it was working.::

 

find_real_file.png

 

 

the business case is to set the max length=500 to avoid truncation when the field is populated, so  I wanted to test it with a small number to see if it was working.

 

its not working.

 

 

I also noticed that no_truncate=true as default, maybe I don't need to modify anything

 

 

1 ACCEPTED SOLUTION

Mohith Devatte
Tera Sage
Tera Sage

hello @juan casas ,

i think i found a work around for you in this issue .

you can do i through on load client script on your table like below 

MAKE SURE YOU UNCHECK ISOLATE SCRIPT  and use the below script

find_real_file.png

script :

function onLoad() {
setTimeout(function() {
jQuery('input[name="task.short_description"').attr("maxlength","500");
}, 1000);
}

MARK MY ANSWER CORRECT IF IT HELPS YOU

View solution in original post

4 REPLIES 4

Taranjeet Singh
Giga Expert

Hi @juan casas,

 

If you are in the global scope and have admin it should allow you to increase the size of the field. But since it is on task it will not be limited to your "Commercial Deposit" table but on all child tables.

Dictionary override does not allow you to change the size though.

 

Taranjeet

Please mark reply as Helpful/Correct, if applicable. Thanks!

we cant do that 😞

not allowed

Yousaf
Giga Sage

Hi juan,

I dont think overriding Max Length is possible. Check this article for good information about max length.


Max Character Length: Catalog variables, Suggestion Fields & Choice Lists


Mark Correct or Helfpul if it helps.



***Mark Correct or Helpful if it helps.***

Mohith Devatte
Tera Sage
Tera Sage

hello @juan casas ,

i think i found a work around for you in this issue .

you can do i through on load client script on your table like below 

MAKE SURE YOU UNCHECK ISOLATE SCRIPT  and use the below script

find_real_file.png

script :

function onLoad() {
setTimeout(function() {
jQuery('input[name="task.short_description"').attr("maxlength","500");
}, 1000);
}

MARK MY ANSWER CORRECT IF IT HELPS YOU