共用方式為


Change “Create Request” button-label on SCSM 2012 R2/2016 HTML5 Portal to “Create Incident”

 

Default HTML5 portal, has button labelled “Create Request” which in default configuration opens the Generic Incident form to create Incident. The label creates confusion to user as it is used for Incident, not for Service Request.

We can change the label to “Create Incident” by modifying the resource file as explained in this blog.

button_createrequest

 

Note from Product team: “We allow the customers to modify their display strings from the resource files, but these changes can get replaced if any future updates contain addition of new strings and/or modifications in that resource file. Please set this expectation with the customer that they might will need to make these string changes again after such update(s). To preserve the modifications, you can keep the copy of modified resource file, which can be later used for comparing whenever the original file gets replaced.”

 

Steps:

 

  1. Open SelfServicePortalResources.resx file in Notepad from C:\inetpub\sswwwroot\SelfServicePortal\App_GlobalResources:

path_globalresource

 

  1. Go to the following section:

  <data name="CreateRequest" xml:space="preserve">

    <value>Create Request</value>

  </data> file_beforemodify

 

  1. Change data name = “CreateIncident” and <value> tag to “Create Incident”

  <data name="CreateIncident" xml:space="preserve">

    <value>Create Incident</value>

  </data> file_aftermodify

 

  1. Save the file and exit.

 

  1. Open Offerings.cshtml in Notepad from C:\inetpub\wwwroot\SelfServicePortal\Views\Home folder:

path_offerings

 

  1. Find “.CreateRequest” button section/tag and rename @Resources.SelfServicePortalResources.CreateRequest to @Resources.SelfServicePortalResources.CreateIncident

From:

from

To:

to

  1. Save and exit.
  1. Refresh or reopen the portal. The button should labelled as "Create Incident" .

button_incident