Solved

Change Event Type Name in sharepoint 2010

Posted on 2013-06-04
3
480 Views
Last Modified: 2013-06-28
Hi,

Does anyone know if it is possible to change the event type names in the Approval workflow in sharepoint 2010? I implemented the out of the box Approval workflow and wish to change the event type from 'workflow initiated' to read 'For Review'.

Regards.
0
Comment
Question by:fogo2000
  • 2
3 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 total points
ID: 39221370
Hi,
there is one possibility which I do not recommend, because it involves modifying an out-of-the-box ASPX file.
Open the file
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\TEMPLATE\LAYOUTS\WrkStat.aspx

and place the following code at line 233 (after the history view error placeholder)
(please adjust the path to your jQuery library)
				<script type="text/javascript" src="/_LAYOUTS/RainerJScripts/jquery-1.8.3.min.js" language="javascript"></script>
				<script type="text/javascript">
// <![CDATA[
					jQuery(document).ready(function(){
					jQuery("table[summary='Workflow History'] td:nth-child(3)").each(function() {
						if (jQuery(this).text() == 'Workflow Initiated') {
							jQuery(this).text('For review'); }
						});
					});
// ]]>
				</script>

Open in new window

As the page is used by ALL workflow histories, you might want to implement an additional check on the list id / workflow id.
HTH
Rainer
0
 

Author Comment

by:fogo2000
ID: 39284471
I've requested that this question be deleted for the following reason:

No adequate response to my question.
0
 
LVL 44

Expert Comment

by:Rainer Jeschor
ID: 39284472
Hi,
the above added code works as described in the question.
0

Featured Post

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you create your solutions on SharePoint sooner or later you will come upon a request to set  permissions of the item depending on some of the item's meta-data - the author, people assigned as approvers, divisions, categories etc. The most natu…
For SharePoint sites, particularly public-facing ones, there are times when adding JavaScript, Meta Tags, CSS Styles or other content to the page <head> section is more practical than modifying master pages.  For instance, you could add the jQuery l…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question