Hi there,
I have a classic list where i use Plumsail Forms forms (modern).
When i click new item, the new form opens in the popup dialog, however i am not able in any way to resize the dialog window.
I tried the code below but it does not work for me... i am assuming this will work only with a child form right?
Hello Margarita,
No, i have a classic list where i use Plumsail Forms. I use modal dialog to show the form not the panel.
I have multiple columns in the form which makes them squished and I do not know how to make dialog wider.
I do want to use the popup dialog for SharePoint classic look and feel consistency (the form inside the dialog is modern Plumsail Forms form). When i use panel to display the form or a whole page, my list automatically switches to modern look and feel.
fd.spRendered(function(){
setTimeout(function(){
//reduce distance from the left
window.top.document.getElementsByClassName('ms-dlgContent')[0].style.left = "300px";
//increase size of dialog and its contents
window.top.document.getElementsByClassName('ms-dlgContent')[0].style.width = "1280px";
window.top.document.getElementsByClassName('ms-dlgBorder')[0].style.width = "1260px";
window.top.document.getElementsByClassName('ms-dlgFrame')[0].style.width = "1220px";
}, 100);
});