I have the following lines (using javascript) in my default display form associated with a document library. It works fine, but when I go to add another web part to that display form, it overrides it and the new web part is missing. Thoughts?
document.querySelector('#s4-ribbonrow').style.display='none';
Ultimately, I would like to hide the ribbon row AND display more than one web part in the default form.