Kayako logo
SupportSuite, eSupport and LiveResponse Discussion, troubleshooting and feedback related to Kayako's flagship support desk products SupportSuite, eSupport and LiveResponse.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
_jeremy_ Offline
New Member
 
Posts: 2
Join Date: Mar 2007
Date fields/custom fields type: Custom - 05-04-2007, 01:01 PM

SupportSuite Version: 3.10.02 STABLE

- I added a custom field, type custom. Admin CP -> Custom Fields -> Insert Field -> Custom -> Next. Entered a Field Title and Field Name.

Field Title: "Date Requested"
Field Name: "daterequested"

From the Staff CP, I copied some of their HTML that calls for the JavaScript files they use to make that nifty calendar for the 'Due' field for tickets.

Code:
<tr> 
<td align="left" valign="top" class="row2" width="30%"> 
<span class="smalltext">Date Requested: </span>
</td>
<td>
<input type="text" name="daterequested" id="daterequested" size="12" readonly="1" value=" " class="swifttext" onclick="return showCalendar('daterequested', '%m/%d/%Y');" />&nbsp;<img src="https://myhelpdeskURL.com/themes/admin_default/icon_duetime.gif" id="daterequested" style="cursor: pointer;" title="" align="absmiddle" onclick="return showCalendar('daterequested', '%m/%d/%Y');" />&nbsp;<a href="javascript:void(0);"onclick="javascript:document.getElementById('daterequested').value='';"><img src="https://myhelpdeskURL.com/themes/admin_default/icon_duetimeclear.gif" align="absmiddle" border="0" /></a>
</td>
</tr>
So, then from the Admin CP -> Templates -> Manage Templates -> General -> 'customfields' I added the above code at the end of the table in that template.

In Admin CP -> Templates -> Manage Templates -> Tickets -> 'submitticket' I added this code:

Code:
<script type="text/javascript" src="https://myhelpdeskURL.com/themes/admin_default/main.js"></script>
<script type="text/javascript" src="https://myhelpdeskURL.com/locale/en-us/staffmenu.js"></script>
<link rel="stylesheet" type="text/css" media="all" href="https://myhelpdeskURL.com/themes/admin_default/calendar-blue.css" title="winter" />
<script type="text/javascript" src="https://myhelpdeskURL.com/themes/admin_default/calendar.js"></script>
<script type="text/javascript" src="https://myhelpdeskURL.com/themes/admin_default/lang/calendar-en-us.js"></script>
<script type="text/javascript" src="https://myhelpdeskURL.com/themes/admin_default/calendar-setup.js"></script>
I did the same for the 'viewtickets' template.

I'm no programmer. I'm sure I'm not doing this right. From the client interface, my field does show up on submit. My field shows when viewing a ticket and is editable. However, I can't find any example(s) of this on the forum, or information as to the right way to do this, verses my brute force method. Does anyone have an example of the correct way to do this? Also, an example of how to pull the existing value/information from the database, when viewing the field?
   
Reply With Quote
  (#2) Old
Solvent LLC Offline
Member
 
Posts: 59
Join Date: Jul 2007
01-08-2007, 04:11 AM

I, too, would love to know how to do this. We really need a "Datepicker" preprogrammed custom field type...
   
Reply With Quote
Reply

Tags
custom, date, fields or custom, type

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46