- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 01:34 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 01:57 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:00 AM
try using the value in style as:
width:240px;
height:300px
and then adjust it as per your need
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:14 AM
if this doesnt work then onLoad client script to change the style can help:
just tried using following in Java script executor (al+cnrl+shift+j) on form and that worked:
--------------
var desc = g_form.getControl('description');
desc.style.height = '50px';
----------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:16 AM
Thanks Sushant, i've tried that as well but the field doesn't accept the styling, it works as expected on the short description field but not on description.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2017 02:08 AM
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