Page 1 of 1

Multi Line Textbox

Posted: 05 Jan 2017
by SpongeBen SquareJaw
Is there a way to have a plain multiline textfield to autoscroll to the bottom on load of form using javascript or JQuery. I cant figure this out in SP Forms

Re: Multi Line Textbox

Posted: 08 Jan 2017
by Dmitry Kozlov
Hi,

Our support team can assist you with the script. It will take 100 support minutes:
http://spform.com/buy

Re: Multi Line Textbox

Posted: 09 Jan 2017
by SpongeBen SquareJaw
This is how it's done normally in jQuery

var textBox = $get("TxtBx"); textBox.scrollTop = textBox.scrollHeight; Why is this so difficult in spforms?

Re: Multi Line Textbox

Posted: 09 Jan 2017
by Dmitry Kozlov
Hi

If your code works, please, try this:

Code: Select all

var textBox = fd.field('FieldName').control()._el().find('input');
textBox.scrollTop = textBox.scrollHeight;