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

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#1) Old
networkops Offline
New Member
 
Posts: 2
Join Date: Feb 2008

SupportSuite
Owned License

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: 4,390
Join Date: Jan 2006
Location: UK

SupportSuite
Owned License

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)
----------------------------------------------------------------
---
  • New to the forum? New user's guide here.
  • Submit bug reports here.
  • Submit support tickets via the members area.
  • Submit sales queries either via live chat or via e-mail.
  • There is no official ETA on Version 4.
   
Reply With Quote
  (#3) Old
networkops Offline
New Member
 
Posts: 2
Join Date: Feb 2008

SupportSuite
Owned License

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

SupportSuite
Owned License
? - 10-04-2008, 04: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
New Member
 
Posts: 29
Join Date: Jul 2007
Location: Porto Alegre - Brazil

SupportSuite
Owned License
26-04-2008, 10:54 PM

xx...

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

SupportSuite
Owned License
26-04-2008, 10: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: 115
Join Date: Oct 2007

SupportSuite
Owned License
03-07-2008, 02: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


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

vB 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
Code for a certain custom field welch Modifications & Addon Releases 1 11-02-2008 07:57 AM
Where to Insert Custom Field Type guimafx How do I? 0 16-08-2007 01:17 AM
Date fields/custom fields type: Custom _jeremy_ SupportSuite, eSupport and LiveResponse 1 01-08-2007 04:11 AM
Custom Field Doesn't Work!! caitlyntw SupportSuite, eSupport and LiveResponse 9 06-04-2007 05:16 PM
How to use Custom field type "Custom"? jptimone SupportSuite, eSupport and LiveResponse 4 05-10-2006 12:01 PM



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Kayako provides online help desk software and support solutions; enabling companies to improve their support and reduce costs.

Our three main products include: SupportSuite, eSupport and LiveResponse



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