Hiding an element from a record

REQUIREMENT Need to hide a specific tab from a custom record. SOLUTION Use the following code snippet in user event script to hide the tab from the custom record and thereby it hide the corresponding sublist.