I've created a new custom edit form for a document library in SharePoint designer. "Launch forms in a dialog?" option in advanced settings is set to "yes", however, it does not affect anything. The form always shows as page. Out-of-box Edit form for a customized document type always pops up as a dialog, however, all other forms, including out-of-box forms for customized link to a document and document set, always appear as page. Please help. Is there a way to specify page appearance on the page definition?
For simpler way use
var x = screen.width / 2 - 750 / 2; var y = screen.height / 2 - 600 / 2; <a class="evidences" title="To add evidences" onclick="window.open(\'' + url + '\', \'\', \'width=750,height=600,left=' + x + ',top=' + y + '\')"><div></div></a>
Use SP Modal Dialog window