I have a SharePoint list. And there are 2 views in this list named 'View 1' and 'View 2'. I've set 'Launch forms in a dialog' option to 'Yes' in list settings.
I'm editing the list by clicking on 'edit this list'. See below screenshot:
Now when I click on 'Item 1' as shown in above picture, the below dialog box opens:
What I want is to go to bottom of this dialog box on click of 'Item 1' or 'Items 2' and so on and only for 'View 1' and not for 'View 2'.
I tried adding below script on the edit form but it didn't work:
$(window).load(function ()
{
var $contents = $("iframe").contents();
$contents.scrollTop($contents.height());
});
Any suggestions how to achieve this ?