Hi all, I want to open an item from a List control, but it always opens in dialog mode.
Is there any option to open it in full page?
Thanks!
Hi all, I want to open an item from a List control, but it always opens in dialog mode.
Is there any option to open it in full page?
Thanks!
Hello @PedroJimenez,
Welcome to Plumsail Community!
You can change the size of the dialog window using the code below, so that the dialog will be opened in a full screen.
fd.control('SPDataTable1').dialogOptions = {
width: window.screen.width,
height: window.screen.height
}
Thank you @Margo.
Perfect solution!
Hi @Margo , this solutions was perfect, but now I want to open an item without dialog from a list control.
Is there any solution for that? Or maybe a workaround?
Thanks!
Hello @PedroJimenez,
How do you want to open it? In the same or a new tab?
Hi @Margo , in the same tab.
You can customize the Title column thus that the link will open in the same tab:
fd.spRendered(function() {
fd.control('SPDataTable1').templates = {
Title: function(ctx) {
var value = ctx.row.Title;
if (!value) {
return '';
}
//update the path
return '<a href="https://mycompany.sharepoint.com/sites/mysite/SitePages/PlumsailForms/ListName/Item/EditForm.aspx?item=' + ctx.row.ID + '">' + value + '</a>';
}
}
});
You can also replace the default Edit button with a custom one. See the example in our documentation here:
https://plumsail.com/docs/forms-sp/how-to/list-or-library-buttons.html