How to - add additional fields to the "submit service request" page

 
Author
Message
SysAid Wiz
2449
 
Hey scumgrief,

The instructions for version 6 has not been changed.
The default fields were always built on a different way since the way we recommend adding the fields provide more customization options.

Best regards.
Haim
Pushing IT forward
SysAider
10
 
What about adding fields based on selected category?

For example:

Category: HR
Sub-category: New Employee

Extra fields would be displayed if new employee should have email, voicemail, etc.



Category: HR
Sub-category: Remove Employee

Extra fields would be displayed to give options to remove email, voicemail etc.


SysAid Wiz
2449
 
Hello jlavetan.

If you wish to add specific texts to the End User Portal depending on which category or subcategory is selected, please edit the submit-service-request.htm file and change the following lines where you want the texts to appear:

Exchange the "Category" and/or "Subcategory" for the categories you want it to appear on.

#if($sr.getCategory()=="Category")
Text to show when you select the above category
#else
$sr.getCategory()
#end

#if($sr.getSubCategory()=="Subcategory")
Text to show when you select the above subcategory
#else
$sr.getSubCategory()
#end

Note: You need to put these blocks of code after the code for the category drop-down. Otherwise, the “if” statements will not know which category is selected and nothing will be done.

Best regards.
Haim
Pushing IT forward
Super SysAider
61
 
Hi -


I added a field called "Call Back Number" with a blank text field. The only difference from the example is the bold CALL BACK NUMBER in the code. Without it I was getting just the colons for a field label.


<tr>
<td class="Form_Ctrl_Label"><label>
$resource.getString('CallBackNumber')Call Back Number:</label></td>
<td> </td>
$frm.printControl('cust_text1', true, true, '')
</tr>
<tr><td height="10"> </td></tr>
SysAid Wiz
2449
 
Hello Richnep.
Welcome to the SysAid community.

Please try to use the below syntax to add the "custom test 1" field.

<tr>
<td class="Form_Ctrl_Label"><label>
$resource.getString('sr.cust_text1')</label></td>
<td> </td>
$frm.printControl('cust_text1', true, true, '')
</tr>
<tr><td height="10"> </td></tr>

To change the name of the field, please edit the translation file under preferences > customize > translate, save the file on your machine, edit it and look for the phrase "'sr.cust_text1" which you can change to any name you would like and then upload the file back to SysAid to apply the changes.

Best regards.
Haim
Pushing IT forward
SysAider
29
 
Hello,
Did this change in SysAid version 6.0.09? Whenever I add the new path to Preferences > Customize > Appearance and make the changes to submit-service-request.htm I never see any of my updated changes.

I'm simply trying to change the Urgency field to the Priority field.

Any help would be greatly appreciated.

Thanks!
SysAid Wiz
2449
 
myjunkiepc ,

I'm not sure why it is not working for you, please make sure you typed the full local path to the folder you have the custom HTML files and not to the exact file.

If this is the way you configured it, please contact our support at helpdesk@SysAid.com so we will be able to further assist you.

Best regards.
Haim
Pushing IT forward
SysAider
5
 
HELP!!!

How do I set a default Category and SUB category???

I tried this:

<tr>
<td class="Form_Ctrl_Label"><label>
Category:</label></td>
<td> </td>
$frm.printControl('problem_type',true,true,'Computer Problem') ; $frm.printControl('problem_sub_type',true,true,'General')
</tr>
<tr><td height="10"> </td></tr>

but it didn't work..
SysAider
24
 
Richnep wrote:Hi -


I added a field called "Call Back Number" with a blank text field. The only difference from the example is the bold CALL BACK NUMBER in the code. Without it I was getting just the colons for a field label.


<tr>
<td class="Form_Ctrl_Label"><label>
$resource.getString('CallBackNumber')Call Back Number:</label></td>
<td> </td>
$frm.printControl('cust_text1', true, true, '')
</tr>
<tr><td height="10"> </td></tr>


Hello, just curious to know if this worked in the End User Portal and if so where did you insert the string?

Thanks,
Jayson
SysAid Mod
716
 
Ricci,

I would suggest you contact support. They will be able to give you accurate instructions for this one.

Cheers
SysAid Mod
716
 
Have you also tried to use the #If as suggested.

The customization in the "submit-service request" form is flexible. You should be able to get it going the way you want. have you asked for help from the support team??
SysAider
11
 
This thread has been very helpful. However, after implementing an initial request to remove some fields, my manager wants to add part of the field list back. Let me explain:

I was asked to remove the category fields (Category, Subcategory, Tertiary Category). The rationale behind this was that our users struggle to select appropriate categories for their tickets (hence my signature). I sucessfully implemented this by removing the following block of code from the submit-service-request.htm file:

After reviewing the changes, I was asked to put the first category (Category) back on the page. I guess my manager felt the users could select the right primary category. So, I removed the tags for Subcategory and Third Category thinking this would remove the 2 extra combo boxes from the form. So the block read like this:

To my surprise, all three were still there. What can I do to hide the Sub Category and Third Category fields? Keep in mind that I do not want to disable the Third Category completely since our administrators will be using this to provide the necessary detail for reporting on our service requests. Also note, I verified the usual: Updated the Templates, I restarted the server, restarted my browser, deleted all browser cache and refreshed the page to make sure IE was not caching the old view.

Thanks in advance!

This message was edited 1 time. Last update was at Nov. 03, 2009 03:14 PM

> SELECT * FROM Users WHERE Clue > 0
0 Rows Returned.
SysAider
1
 
THis instructions does not seems to work for me on 6.5.06

I'm trying to add the User Custom List 1 to the Service Request page and I can't or this is not working. I have been trying to do it the same way as the department

#if( $attributes.indexOf("department") > 0)
#set( $cnt = $cnt+1 )
#set( $row = ($cnt % 2)+1 )
<tr align="$rb.getString('dir.left')">
<td > </td>
<td class="Form_Ctrl_Label"><label>$rb.getString('user.department'):</label></td>
<td class="Form_Ctrl_Label"><label>$esc.escapeTextHtml($lists.departments.getCaption( $user.department), $charset)</label></td>
<td> </td>
</tr>
#end

I just want to add the user.cust_list1 to the service request page for read
SysAid Mod
716
 
You can use this as an example.

<tr>
<td
class="Form_Ctrl_Label"><label>$resource.getString('sr.cust_list1'):</label></td>
<td> </td>
$selectSrList1

This message was edited 2 times. Last update was at Feb. 04, 2010 05:41 PM

SysAider
6
 
Haim wrote:Hello jlavetan.

If you wish to add specific texts to the End User Portal depending on which category or subcategory is selected, please edit the submit-service-request.htm file and change the following lines where you want the texts to appear:

Exchange the "Category" and/or "Subcategory" for the categories you want it to appear on.

#if($sr.getCategory()=="Category")
Text to show when you select the above category
#else
$sr.getCategory()
#end

#if($sr.getSubCategory()=="Subcategory")
Text to show when you select the above subcategory
#else
$sr.getSubCategory()
#end

Note: You need to put these blocks of code after the code for the category drop-down. Otherwise, the “if” statements will not know which category is selected and nothing will be done.

Best regards.
Haim



Hi Haim...

Wich exactly is the code for the "category drop-down" in order to put my code below...

Thanks in advance.