|
Tip for users- How to add a text that will appear only for a certain category in the End User Portal?
Note that in SysAid free version you can only edit the submit-service-request.htm page, while SysAid full version allows you to customize all the HTML files of the End User Portal as well. This tip, however, is relevant for both SysAid full and free versions.
Your End User portal is written directly in the End User Portal html files. The Default templates are located in-
c:\Program Files\SysAidServer\root\WEB-INF\conf\html\
But please do not customize the files at that location. Copy them to a different location first, and only then make the required changes.
Once you have completed editing the HTML code of the End User Portal, direct SysAid to the new location of these web pages. In the administrator interface, go to Preferences > Customize > Customized Forms.
In the field 'HTML Files Location:' at the very bottom of the page, insert the new location of the HTML files.
How to edit the submit-service-request.htm so SysAid will automatically present a text or a special link only once your end user has chosen a specific category or a specific sub-category?
Sometimes it can be very useful to provide end users before they submit a service request with specific information, according to the category or the sub-category they have selected. For instance, you may want to suggest to an end user to restart a printer, and check it is not out of toner or paper before submitting a service request about it to the IT department. Evidently these instructions should appear only when the end user has chosen to submit a service request regarding a printer.
In the HTML code of the page submit-service-request.htm, replace the "Category" (For instance- "Hardware") and/or the "SubCategory" (For instance- "Printers" with the code blocks specified below:
#if($sr.getCategory()=="Category")
Insert here the text that SysAid should display when the category above is selected
#else
$sr.getCategory()
#end
#if($sr.getSubCategory()=="Subcategory")
Insert here the text that SysAid should display when the sub- category above is selected
#else
$sr.getSubCategory()
#end
Note that the location of the code blocks specified above is crucial. Please insert them underneath the code block specified below:
<tr>
<td width="8%"> </td>
<td
width="14%"><strong>$resource.getString('submit.category.caption'):</strong></td>
<td
width="53%">$categorySelect $subCategorySelect
$thirdLevelCategorySelect</td>
<td width="25%"> </td>
</tr>
For example, if you wish to add the following text whenever your end user selects the sub-category "Printers":
Before submitting your service request, please make sure that you have restarted the printer, and that there is enough toner and enough paper in the machine
Please edit your submit-service-request.htm code as follows:
<tr>
<td width="8%"> </td>
<td
width="14%"><strong>$resource.getString('submit.category.caption'):</strong></td>
<td width="53%">$categorySelect $subCategorySelect
$thirdLevelCategorySelect</td>
<td width="25%"> </td>
</tr>
#if($sr.getSubCategory()=="Printer")
Before submitting your service request, please make sure that you have restarted the printer, and that there is enough toner and enough paper in the machine
#else
$sr.getSubCategory()
#end
Similarly, you can use the usual html code for creating links that may appear along with the special text you wish to display for a specific category or sub-category.
Thank-you for using SysAid
|