Hi,
we have a request from the users to increase the size of the Add Notes field in the Social Pane
I know we are not able to modify the form, but can this be done with JS or CSS?
thanks for the help
//Martin
Hi,
we have a request from the users to increase the size of the Add Notes field in the Social Pane
I know we are not able to modify the form, but can this be done with JS or CSS?
thanks for the help
//Martin
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
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);
}
Regards,
Clofly
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,900 Super User 2024 Season 2
Martin Dráb 229,275 Most Valuable Professional
nmaenpaa 101,156