New answers tagged

0

Without knowing the environment details (o365 or on-Prem), here is one solution that can work on 2013 or o365. By using custom code! The link included in the workflow email will be directed to a custom page that have your javascript code embedded (i.e. Script Editor WP). The link should have the ID of the item you want to update, so for example, it will ...


1

target="_blank" in a href link should open a new window. Or you could say: javascript:OpenPopUpPage('yourUrl') You can put this in a href or in a function chain as: function onDropChange(e) { // do something if(!!URL) // URL == true basicly OpenPopUpPage(URL); }


0

I finally figured out to make it work by adding some code directly to the hyperlink. javascript:SP.UI.ModalDialog.ShowPopupDialog("/SharePointSite/Lists/ListId/DispForm.aspx?ID=1"); links are now opening correctly.


0

After finding this Stack Overflow article on a similar topic, I have to ask: has anyone changed the views of the Document Center lately? That link giving the error could be pointing to an invalid view.


1

You can do it using jQuery like: <button onclick="javascript:popup(); return false;">Modal</button> function popup(){ SP.UI.ModalDialog.showModalDialog({ url: "URL of List", title: "Title of page", allowMaximize: true, showClose: true, width: 850, height: 600, ...


0

When used in a Calculated Column Formula (set tot datatype=Number/DateTime so it outputs as HTML in A View (and View only)) you have to escape the "(double quote) properly: ="<a onclick=""javascript:location.href='UploadDocuments.aspx' + location.search"">Save</a>"


0

You can use approach of using calculated column and achieve your functionality.. Look into this blog, this will provide you all you need to create hyperlink using Caluclated Column on List View. https://devdotnotes.wordpress.com/2012/01/29/sharepoint-caculated-column-and-hyperlink-no-workflow-or-script-needed/


0

Consider using Client Side Rendering and JSLinks. Sample code can be found here



Top 50 recent answers are included