Limiting the size of string fields

Dubz
Mega Sage

HI All,

I'm just wondering if there is a way to limit the amount of space a string field will occupy on my form? I have a description field which permits 4000 characters, i don't want to reduce the number of characters but i want to limit the size the actual field is before it starts scrolling.

The image below shows a fully populated description field, is there a way to make it occupy half the space it currently does?

find_real_file.png

1 ACCEPTED SOLUTION

Hi David


Yes it is working but i found that it depends on the Max length defined in the dictionary.


When i tried for the short_description which have max_length 160 , the style setting was working fine. When I applied the same settings for the description field which has length of 4000, style setting was not working.



-Harsh


View solution in original post

16 REPLIES 16

I can make the description field larger with that script but there seems to be a minimum height for that field that can't be changed, that minimum height also increases as the field is populated until it reaches the size in my original image. Are you testing your script on a fully populated field?


Nandeesh Kumar
Kilo Contributor

Hi @David Dubuis, I'm currently having same issue in New York version.

 

Did u get the solution ?