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
jtaugher Offline
Member
 
Posts: 52
Join Date: Dec 2005
Question RegExp - Required Custom Field - 08-03-2006, 08:45 PM

How can I make a custom-field in Tickets required and RegExp'd?

That is now that we have a list of about 40-options to choose from for a custom-field, I'd like to make it so that the "selected one" is blank (or says "Choose One"), make it required and then setup a RegExpression to make sure it's NOT "Choose One".
   
Reply With Quote
  (#2) Old
Neil-UKWSD Offline
Member
 
Neil-UKWSD's Avatar
 
Posts: 865
Join Date: Jun 2003
Location: United Kingdom
09-03-2006, 01:21 AM

Hi,

When adding a custom field you can select if it is required and also enter Regexp Validation.


Neil Wood | UK Web.Solutions Direct Ltd

UK cPanel/WHM hosting accounts
http://ukwebsolutionsdirect.co.uk
   
Reply With Quote
  (#3) Old
jtaugher Offline
Member
 
Posts: 52
Join Date: Dec 2005
09-03-2006, 03:21 PM

Quote:
Originally Posted by Neil-UKWSD
When adding a custom field you can select if it is required and also enter Regexp Validation.
I'm aware of this already, but how do you create a RegExp in Kayako?

Can I create a field called --Choose One--, choose it as default, indicate it is required and then state that RegExp "accept it if it isn't "--Choose One--". I'm looking for a solution.
   
Reply With Quote
  (#4) Old
jtaugher Offline
Member
 
Posts: 52
Join Date: Dec 2005
21-03-2006, 09:34 PM

Quote:
Originally Posted by jtaugher
I'm aware of this already, but how do you create a RegExp in Kayako?

Can I create a field called --Choose One--, choose it as default, indicate it is required and then state that RegExp "accept it if it isn't "--Choose One--". I'm looking for a solution.
HELLO? I NEED SOME HELP.
   
Reply With Quote
  (#5) Old
_zb Offline
New Member
 
Posts: 2
Join Date: May 2006
Regexp - 04-05-2006, 05:45 PM

Quote:
How can I make a custom-field in Tickets required and RegExp'd?

That is now that we have a list of about 40-options to choose from for a custom-field, I'd like to make it so that the "selected one" is blank (or says "Choose One"), make it required and then setup a RegExpression to make sure it's NOT "Choose One".
Yes It should be nice to have [NOT] field feature when creating regexp to check field.


Also little question: why my simple regexp ^[a-z\.]+$ for verification domain names always failed on any name like domain.com ?
   
Reply With Quote
  (#6) Old
kaviar Offline
Member
 
Posts: 112
Join Date: Dec 2005
Location: Brisbane, Australia
30-05-2006, 04:40 AM

I'm trying to do the exact same thing, any help???
   
Reply With Quote
  (#7) Old
jtaugher Offline
Member
 
Posts: 52
Join Date: Dec 2005
30-05-2006, 06:11 PM

Quote:
Originally Posted by kaviar
I'm trying to do the exact same thing, any help???
No one has helped yet.
   
Reply With Quote
  (#8) Old
AKL-MFCU Offline
Member
 
Posts: 147
Join Date: Feb 2006
Location: Lakeland, Florida - USA
Just to let you know - 30-05-2006, 06:31 PM

Just to let you know this is mainly for peer-to-peer support. If you need the creator's technical support, you should submit a ticket.
   
Reply With Quote
  (#9) Old
jtaugher Offline
Member
 
Posts: 52
Join Date: Dec 2005
30-05-2006, 06:41 PM

Quote:
Originally Posted by AKL-MFCU
Just to let you know this is mainly for peer-to-peer support. If you need the creator's technical support, you should submit a ticket.
I did. They *CLOSED* the ticket:

Ticket ID: UAW-164226
Status: Closed
Created On: 08 Mar 2006 08:45 PM

Jack Taugher
Posted On: 08 Mar 2006 08:45 PM
--------------------------------------------------------------------------
How can I make a custom-field in Tickets required and RegExp'd?

That is now that we have a list of about 40-options to choose from for a custom-field, I'd like to make it so that the "selected one" is blank (or says "Choose One"), make it required and then setup a RegExpression to make sure it's NOT "Choose One".

Varun Shoor
Posted On: 14 Mar 2006 06:48 PM
--------------------------------------------------------------------------
Hi Jack,
You can specify the regular expression when creating/editing the custom field. The system uses PCRE if I remember correctly.
Regards,
Varun Shoor

Jack Taugher
Posted On: 14 Mar 2006 06:50 PM
--------------------------------------------------------------------------
Can you please provide an example? I don't know what to do in your
software.
   
Reply With Quote
  (#10) Old
dickot Offline
New Member
 
Posts: 4
Join Date: May 2006
31-05-2006, 06:05 PM

jt,

I have the same thing going on:

-- Please Select Model --
<list>

and the Regexp Validation to ensure that this option is not selected is:
^[A-Z0-9]{1}

That means that the first character must be a to Z, 0 thru 9...

Hope this helps...
[RegExp hurts my brain]
   
Reply With Quote
  (#11) Old
jtaugher Offline
Member
 
Posts: 52
Join Date: Dec 2005
31-05-2006, 07:45 PM

Quote:
Originally Posted by dickot
and the Regexp Validation to ensure that this option is not selected is:
^[A-Z0-9]{1}
I copy'n'pasted this to the list area, and everytime I hit "Send" on trying to create a new ticket -- I then get "One of the required field(s) is empty."
   
Reply With Quote
  (#12) Old
jadixon Offline
New Member
 
Posts: 3
Join Date: Jun 2006
15-06-2006, 07:05 PM

jtaugher,

You need to place the "/" delimeter around the expression, like so: /^[A-Z0-9]{1}/

Alternatively, and a better way of handling this situation, you can create a regular expression to accept any option EXCEPT your "Choose One" option. For my list, I use "- Please Select -" as the default option, and my regular expression is as follows: /^(?!.*?- Please Select -)/

Hope that helps!

Last edited by jadixon; 07-03-2007 at 02:44 PM.
   
Reply With Quote
  (#13) Old
AKL-MFCU Offline
Member
 
Posts: 147
Join Date: Feb 2006
Location: Lakeland, Florida - USA
did you try a google? - 15-06-2006, 10:29 PM

did you try a google of PCRE format that varun said? I haven't tried it myself, but thats usually what i do when i look for examples.
   
Reply With Quote
  (#14) Old
jibo Offline
Member
 
Posts: 33
Join Date: Dec 2007
Location: Vianen - The Netherlands
22-05-2008, 11:36 AM

thanx a lot the /^(?!.*?Maak een keuze...)/ did exacly what i needed!! Is it not an idea to make a sticky topic with regexp examples?
   
Reply With Quote
Reply

Tags
custom, regexp, required

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom field entries left over from 2.3.5 -> v3 Mikie SupportSuite, eSupport and LiveResponse 3 24-07-2007 11:10 AM
Custom field (groups) in staff creation joost SupportSuite, eSupport and LiveResponse 0 20-04-2007 10:18 AM
Custom Field Doesn't Work!! caitlyntw SupportSuite, eSupport and LiveResponse 9 06-04-2007 05:16 PM
Merging Custom Fields in ViewTicket of Staff Mick SupportSuite, eSupport and LiveResponse 0 21-09-2006 04:48 PM



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