Posts

Showing posts from 2017
Read Query string parameters: <script> $(document).ready(function(){ var ID= getUrlVars()["queryparam"]; $("input[title='test']").val(ID); }); function getUrlVars() { var vars = [], hash; var hashes = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&'); for(var i = 0; i < hashes.length; i++) { hash = hashes[i].split('='); vars.push(hash[0]); vars[hash[0]] = hash[1]; } return vars; } </script>
Javascript / jquery on hover or click event for sharepoint search results pagination. jQuery('#MSOZoneCell_WebPartWPQ3').on('mouseenter','a',function(event){ $(this).attr('Target','_blank'); } );
first list workflow: Start approval process > Edit approval task by clicking approval task name > In Task Form Fields section, click New > create a people or group field, named it next approver > Change the behavior of a single task > Under when a task completes section, under If current task: outcome equals Approved, and Update list item action (update current list item: a people or group field (named approver2) to Current Task: next approver field) > Save and Publish the workflow. Second list workflow: Wait for approver2 to be not empty, and then start approval process on current item with current item: approver2.