I have added a button into my SharePoint list using SharePoint designer.
I want to be able to open a document from the button. So I go the url for the word document by going properties on the normal link in a SharePoint list for a document.
I then put the link in a hidden column. I am now trying to use window.location.href = {column name}
and I am keep getting below error.
500 error.
I want to use a button to open a document because I want to trigger a workflow off when the user clicks on OPEN DOCUMENT button.
Does anyone have any ideas whats the best way ?