web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Horizontal scrolling bar for textarea

(0) ShareShare
ReportReport
Posted on by

Hi all,

Sometimes there will be wide table inside the content of an email(below picture),

I am wondering if a horizontal scrolling bar can be added to the textarea in email form?

Thank you very much.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Deepesh161 Profile Picture
    6,317 on at
    RE: Horizontal scrolling bar for textarea

    There is no supported way to achieve this

  • Cornel Croitoriu Profile Picture
    50 on at
    RE: Horizontal scrolling bar for textarea

    You can alter the DOM for the textarea in runtime to display horizontal scrollbar also

  • Community Member Profile Picture
    on at
    RE: Horizontal scrolling bar for textarea

    hi Cornel,

    can you show the way? thanks a lot!

  • Suggested answer
    Deepesh161 Profile Picture
    6,317 on at
    RE: Horizontal scrolling bar for textarea

    DOM manipulation is unsupported still here is a quick reference:

    body tag needs overflow-x set to scroll

  • Community Member Profile Picture
    on at
    RE: Horizontal scrolling bar for textarea

    Hi Deepesh,

    You inspired me!

    I added the following script to the email form, and let the function [Form_onload] run on email form load

    function Form_onload(){
      add_scroll("description");
    }
    
    function add_scroll(LabelName){
      document.getElementById(LabelName).style.overflowX="scroll";
    }


    But something strange happened. An extra vertical scrollbar appeared,

    and the horizontal scrollbar is not scrollable even the content exceeded the textarea....

    Any ideas?

    Thank you!!

  • Suggested answer
    Deepesh161 Profile Picture
    6,317 on at
    RE: Horizontal scrolling bar for textarea

    I will rather suggest you to use a html webresource with jquery rich text editor and then internally save to CRM via Xrm namespace.

    Whatever script we apply here can easily break in future. HTML webresource will be useful until any methods are not deprecated.

  • Community Member Profile Picture
    on at
    RE: Horizontal scrolling bar for textarea

    Hi Deepesh,

    Would you mind elaborate a little bit more?
    I am very new to CRM coding,

    Xrm.Page.getAttribute('description')
    
    or 
    
    Xrm.Page.getControl('description')


    and how to set the style overflow?

    It seems that [   Xrm.Page.getAttribute('description').style.overflowX="scroll";  ], is not a correct behavior.

    It will be graceful if sample can be provided~

    Thanks!!

  • Suggested answer
    Mithilesh Kumar Profile Picture
    10,047 on at
    RE: Horizontal scrolling bar for textarea

    Hi Doll,

    You can refer this for your Text Editor.

    community.dynamics.com/.../create-a-rich-text-textarea-in-microsoft-crm-2013-forms.aspx

    Hope that helps

    Thanks

    Please mark my post as verified if you found it helpful

  • Community Member Profile Picture
    on at
    RE: Horizontal scrolling bar for textarea

    Hi Mithilesh,

    Appreciate for your suggestion, but I don't need such function for the description, a simply horizontal scrollbar will fulfill my need :)

  • Community Member Profile Picture
    on at
    RE: Horizontal scrolling bar for textarea

    The problem not yet solve, can somebody give me some hints please??

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans