Add a scroll bar for particular section in normal form

deepanshanand
Kilo Expert

hi experts, 

is it possible to add a scroll bar in a normal form for a particular section.

1 ACCEPTED SOLUTION

Sagar Patro
Kilo Guru

It can be a CSS trick manipulating the DOM elements. Remember, it is never a good idea to make DOM manipulation.

Coming on to the solution,

1. Go to Form Sections/sys_ui_section table and find the section which you would like to have scroll on. 

2. Copy the sys_id of the record.

3. Write an on load client script on the target table, for this example, I will assume it to be Incident.

Demo:

On my developer instances, the form section for Incident Notes section is "991f88d20a00064127420bc37824d385"

So the client script would be 

var sec_el = document.getElementById("991f88d20a00064127420bc37824d385");//Sys ID of the section.

if(sec_el){

   sec_el.style.maxHeight = "100px"; //Update based on your need
   sec_el.style.overflow = "scroll";

}

 

find_real_file.png

Have fun!

Mark it as Correct and Helpful based on the impact of the solution.

View solution in original post

5 REPLIES 5

Awesome

Worked like a charm. 🙂