简体   繁体   中英

How to make a text field fit in Dynamics CRM 2011

Does anyone know how to make the size of a text field shrink in Dynamics CRM 2011? I tried to find a solution online but it seems impossible.

Now, there is a setting that allows me to fit a text box to size of document.window but it's too big.

I'd like to make it based on the length of a field.

By default the form editor will use the maximum amount of space available for the text field, and there is no "CRM supported" methodology for specifying the exact size. You could add spacers on the form to take up some of the usable space, but that would have to be done by hand, not based on the text size of the field.

The unsupported method would be finding the text box in the DOM and editing it via javascript/Jquery during the onload.

If the settings of forms and controls are not enough, you might consider creating your own web resource containing HTML document where you have full control. Then you can stuff it in using an IFRAME. But it's usually a lot of work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM