Kayako logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
networkops Offline
New Member
 
Posts: 2
Join Date: Feb 2008
Custom Field Type "Custom" HTML code example. - 25-02-2008, 01:18 PM

Hi!

We have created a custom field of type "Custom" called "mobile_number" - we need to have this field on all ticket submission pages. The reason it has been created as field of type "Custom" rather than any built in field type is that we want to show this field within the "General Information" tab.

Now, we have added the following code to the "General Information" tab:

PHP Code:
 <tr>
                <
td align="left" valign="top" class="row2"><span class="<{if $posterror == true && $mobile_number == ""}>redtext<{else}>smalltext<{/if}>">VIPtel Mobile
Number
</span></td>
                <
td><input name="mobile_number" type="text" size="25" class="swifttext"
value="<{$mobile_number}>"></td>
          </
tr
This field behaves as expected in all situations but one - when a required field (e.g. subject or message) is missing. What happens then is that this is the field that gets highlighted in red (and cleared) along with the field(s) with which the actual problem exists.

I suspect the problem is because of how we are referring to the field in the check, i.e.
PHP Code:
$mobile_number 
- my question is - is this the right way to refer to the field? Or should we be using something like
PHP Code:
$_swift[something][something
to refer to the field?

Regards,
-Varun
   
Reply With Quote
  (#2) Old
Jamie Edwards Offline
Operations Manager
 
Jamie Edwards's Avatar
 
Posts: 7,354
Join Date: Jan 2006
Location: England, UK
25-02-2008, 05:07 PM

Hi Varun,

I have moved your thread into the Developers & Code forum.


Jamie Edwards (jamie.edwards ]at[ kayako.com)
----------------------------------------------------------------
---
   
Reply With Quote
  (#3) Old
networkops Offline
New Member
 
Posts: 2
Join Date: Feb 2008
27-02-2008, 01:12 PM

Hi Jamie!

Thanks for this and sorry for the mistake. Now, how do we go about getting some sample code for this case? I am sure that many other users would appreciate a similar example since they too would be getting stumped.

A forum search and going through the manual did not give me the answer I was looking for - did I miss something obvious?

Regards,
-Varun
   
Reply With Quote
  (#4) Old
djeffreys Offline
New Member
 
Posts: 2
Join Date: Apr 2008
? - 10-04-2008, 05:24 PM

Has this been resolved yet?

I have a similar problem and can't find help anywhere.

I would like to have a custom field type on the Contact, but can't figure our what I'm supposed to do.

Ideally I would like to be able to upload a file on the custom tab, which would then be accessible via a URL to view when required.

Any help would be greatly appreciated.

Thanks.
   
Reply With Quote
  (#5) Old
guimafx Offline
Member
 
Posts: 36
Join Date: Jul 2007
Location: Porto Alegre - Brazil
26-04-2008, 11:54 PM

xx...

Last edited by guimafx; 26-04-2008 at 11:58 PM.
   
Reply With Quote
  (#6) Old
guimafx Offline
Member
 
Posts: 36
Join Date: Jul 2007
Location: Porto Alegre - Brazil
26-04-2008, 11:57 PM

What a poor solution... here what i'm gonna do djeffreys.

1. Create a custom field type "custom"

2. Go to Manage Fields, pass the mouse ver your custom, and discover the ID like custimfield="10"

3. Now, you modify submit ticket template.. insert the form object.

4. When you submit this POST from Support Center, it creates the ticket.... Down there inside index.php.....

5. Make a select with last_id from ticket already created... you are gonna find it at the table swtickes inside mysql.. all the stuffs from the ticket, link id and ticketmaskid....

6. After, i could make another insert, inside swcustomfieldsvalues... Here you can't do wrong..
take a look and discover....

That's should be the wrong way... i mean, not the best... but it should work.. i will do that in this week

Hope that works

Regards,
   
Reply With Quote
  (#7) Old
joshuah Offline
Member
 
Posts: 156
Join Date: Oct 2007
03-07-2008, 03:26 AM

hello how would i be able to setup a CUSTOM field like displayed above, but the thing is, i only want that field to be displayed on certain departments? i.e. dept1 and not dept2 etc?
   
Reply With Quote
Reply

Tags
code, custom, html, type

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Code for a certain custom field welch Modifications & Extensions 1 11-02-2008 07:57 AM
Where to Insert Custom Field Type guimafx How do I? 0 16-08-2007 02:17 AM
Date fields/custom fields type: Custom _jeremy_ SupportSuite, eSupport and LiveResponse 1 01-08-2007 05:11 AM
Custom Field Doesn't Work!! caitlyntw SupportSuite, eSupport and LiveResponse 9 06-04-2007 06:16 PM
How to use Custom field type "Custom"? jptimone SupportSuite, eSupport and LiveResponse 4 05-10-2006 01:01 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78