Changing the String "A satisfaction survey was processed."

Changing the String
sfletcher's picture

When a satisfaction survey is submitted in the Helpdesk, the string "A satisfaction survey was processed." displays at the top of the comment. Satisfaction surveys can be used for other purposes which would then require changing the string to something more generic.

Here is what you need to do:

Add a string override via the standard customization technique. The new string should have an id of "fmtIncidentRatingComment" and a single replacement parameter to hold the values:

<string id="fmtIncidentRatingComment">My custom comment.#cr;{0}</string>

The #cr; inserts a carriage return between the comment and the replacement parameter.

String Override

This is a portion of the custom.config file in the AeXHD directory:

<resourceLibs>
   <resourceLib file="CustomStrings.xml" path="~/custom/" />
</resourceLibs>

Portion of the CustomStrings.xml file:

<strings>
   <string id="csidNoCategory">--- Please Select ---</string>
   <string id="csidLblQueueList">Queue List:</string>
   <string id="csidLblScope">Scope:</string>
   <string id="csidLblResolution">Resolution:</string>
   <string id="fmtIncidentRatingComment">Contact Submitted Feedback.#cr;#cr;{0}</string>

3.7
Average: 3.7 (10 votes)

Question on syntax

What is the (0) for after the carriage return?

Using Parameters with strings

sfletcher's picture

You can pass parameters to the string. After the cr there is a left-curley bracket, a zero for the first parameter and then a right-curley bracket ({0}).

In the MyHDThankYou.ascx the following is found:

ResourceManager.GetString("fmtIncidentRatingComment", false, True, nvpairs.ToString)

It looks like three parameters are being sent but I have to apologize because I have no idea what they represent and nothing other than the string I used shows up before the other stings I am writing to the comment field.