Skip to main content

Notifications

Announcements

No record found.

Customer Service forum

Are we able to modify the height of the add Notes fields section in the Social Pane

Posted on by 390

Hi,

we have a request from the users to increase the size of the Add Notes field in the Social Pane

2019_2D00_09_2D00_19_5F00_10h33_5F00_09.png

I know we are not able to modify the form, but can this be done with JS or CSS?

thanks for the help

//Martin

Categories:
  • icimasa Profile Picture
    icimasa 390 on at
    RE: Are we able to modify the height of the add Notes fields section in the Social Pane

    Hi Clofly,

    thanks for the quick reply and help on this, and I'm fully aware of the unsupported way and I will surly give this a try and let you know how it works out for us..

    thanks.. :)

    regards

    Martin

  • Verified answer
    cloflyMao Profile Picture
    cloflyMao 25,198 on at
    RE: Are we able to modify the height of the add Notes fields section in the Social Pane

    Hi Martin,

    Firsyly it seems that we need to wait a bit time for Timeline tab being loaded,

    and the Note textarea element will only be generated after we clicked Enter a note input field, (there is also a delay before the Note textarea element being generated)

    Thus I create two timer to wait for Timeline tab being loaded on form and Note field being generated, then I check if the Enter a note element is clicked,

    after it has been clicked, then we wait a seconds for Note element being generated and grab it.

    Obviously, the method works in unspported way.

    function test() {

    var elementIsClicked = false; // declare the variable that tracks the state

    function clickHandler() { // declare a function that updates the state
    elementIsClicked = true;
    if (elementIsClicked) {
    setTimeout(function() {
    parent.document.getElementById('create_note_notesText').style.height = '200px';
    }, 1500);
    }
    }

    setTimeout(function() {
    // Create a timer for Enter a note element being loaded
    var element = parent.document.getElementById('create_note_placeholder'); // grab the Enter a note element
    element.addEventListener('click', clickHandler);
    }, 2000);

    }

    x001.PNG

    Regards,

    Clofly

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,900 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,275 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans