Javascript for Popup Window
When it comes to Javascript I have essentially no experience so please bare with me. I am attempting to create a command bar button to pop out the current item displayform into a simplified, separate window. I believe this can be done via javascript as shown in this example HTML Popup Window Code (quackit.com). How do use this code to do the previously described?
0
-
Official comment
Hi Dan Thale,
you can achieve that using our "Execute Script" Action with the following script:
var url = [[@Web.ServerRelativeUrl]]+'/Lists/YourListName/DispForm.aspx?ID='+[[ID]]; window.open(url,'popUpWindow','height=300,width=400,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,status=yes');
Kind regards
Please sign in to leave a comment.
Comments
1 comment