Multi Line Textbox

Discussions about Forms Designer for SharePoint 2013 / 2016 and Office 365.
Locked
SpongeBen SquareJaw
Posts: 16
Joined: Mon Nov 24, 2014

05 Jan 2017

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

08 Jan 2017

Hi,

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

SpongeBen SquareJaw
Posts: 16
Joined: Mon Nov 24, 2014

09 Jan 2017

This is how it's done normally in jQuery

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

User avatar
Dmitry Kozlov
Site Admin
Posts: 1524
Joined: Thu Jun 07, 2012

09 Jan 2017

Hi

If your code works, please, try this:

Code: Select all

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

Locked
  • Information
  • Who is online

    Users browsing this forum: No registered users and 8 guests