May Newsletter Tip
> May Newsletter Tip

Tip: 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? 

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%">&nbsp;</td>
                                                <td
width="14%"><strong>$resource.getString('submit.category.caption'):</strong></td>
                                                <td
width="53%">$categorySelect &nbsp;&nbsp; $subCategorySelect &nbsp;&nbsp;
$thirdLevelCategorySelect</td>
                                                <td width="25%">&nbsp;</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%">&nbsp;</td>
        <td
width="14%"><strong>$resource.getString('submit.category.caption'):</strong></td>
        <td width="53%">$categorySelect &nbsp;&nbsp; $subCategorySelect
&nbsp;&nbsp; $thirdLevelCategorySelect</td>
        <td width="25%">&nbsp;</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.