K2 Smartforms: Freeze tabs at the top of the window


Please can someone advise how I can freeze the the tabs in a form to the top of the screen so when the form is scrolled this will always be visible.

 

I have searched and have been unable to find anything that is related.


4 replies

There isnt any built in functionality in K2 to do this. I think you would have to use javascript to freeze tabs.

Do you know what the javascript would be and exactly how to implement?


 


Thanks.

Hi,


Can you check using below code


<script>$("[name ='viewname']").find('div.scroll-wrapper').css({"height":"400px"}); </script>


Adjust height as per your requirement.


Hope this would help.


 

Hi P_M,


 


I have tried this however I expect that this is looking more at the view rather than the form? Either way even after putting in the view name and form name nothing would freeze the top of the screen.


 


I tried with 'Prevent XSS' both Enabled and Disabled.


 


Many Thanks.

Reply