Multi Line Textbox
-
- Posts: 16
- Joined: Mon Nov 24, 2014
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
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Our support team can assist you with the script. It will take 100 support minutes:
http://spform.com/buy
Our support team can assist you with the script. It will take 100 support minutes:
http://spform.com/buy
-
- Posts: 16
- Joined: Mon Nov 24, 2014
This is how it's done normally in jQuery
var textBox = $get("TxtBx"); textBox.scrollTop = textBox.scrollHeight; Why is this so difficult in spforms?
var textBox = $get("TxtBx"); textBox.scrollTop = textBox.scrollHeight; Why is this so difficult in spforms?
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi
If your code works, please, try this:
If your code works, please, try this:
Code: Select all
var textBox = fd.field('FieldName').control()._el().find('input');
textBox.scrollTop = textBox.scrollHeight;
-
- Information
-
Who is online
Users browsing this forum: No registered users and 8 guests