How to show only the subpanels of interest in the Select which subpanels to view section?

In Detail view in the Select which subpanels to view section

I am interested in showing only some subpanels of some custom modules and some other of the core. What is the correct way to do this in suitecrm 8?

I have tried the process described in this post. This works in version 7 but in 8 I notice that a javascript error occurs when trying

How to select only the subpanels of interest in the Select which subpanels to view section of the detail view of a module?

Regards