I deal with dynamics CRM 2011 online and I faced some troubles with printing documents there.
If there is a scroll into a form so in print window it'll too and I can't do anything with that coz there is any editing function there.
I'm interested could I resize/expand a text field in order to make a text visible for user without any scrolling?
Is there any method in JavaScript that can remove scroll by resizing field?
In dynamics CRM I may use such functios on an onload event.
thanks in advance
tried
function textAreaAdjust(o) {
o.style.height = "1px";
o.style.height = (25+o.scrollHeight)+"px";
}
got an error:
'style' - is null or it's not an object
Not in a supported fashion.
Supported Extensions for Microsoft Dynamics CRM
Form Scripting
Microsoft JScript functions that are associated through the customization tools to the available events in the form are supported. Interaction with data in the form is supported when performed using documented objects and methods available within the Xrm.Page.data object. Interaction with the form appearance and behavior is supported when performed using documented objects and methods available within the Xrm.Page.ui object. However, any direct interaction with the HTML Document Object Model (DOM) will probably not be upgradable. The structure of forms and HTML elements used in the forms could change in future releases. For more information, see Write Code for Microsoft Dynamics CRM Forms.
And as far as I know Xrm.Page.ui
doesn't support that kind of functionality.