I need to open a modal window or popup from a SharePoint site column, when the user clicks on a link shown by this column.
I have tried to use these types of site columns:
- Full HTML content with formatting and constraints for publishing
- Hyperlink with formatting and constraints for publishing
but I don't know how exactly to use them. What should I put as content? I have tried this code from C# but that does not work:
private LinkFieldValue linkField = new LinkFieldValue();
linkField.NavigateUrl = "javascript:window.open('Pages/delete.aspx?Id='" + id +",width='300',height ='300', toolbar='no')";
linkField.Text = "Delete";
linkField.UseDefaultIcon = true;
linkField.ToolTip = "Delete";