Project

General

Profile

Custom field with dropdown menu

Added by Stanislav Kollov over 15 years ago

Dear All,

I have created custom field for my tracker, marked is as necessary. Search engine is case sensitive and some times different users fill this area in different names, something like Sofe/sofe/ sofe/sofe ... etc My idea is make this field as dropdown menu to prevent such problem.

Thanks in advice...

WBR,
Stas


Replies (5)

RE: Custom field with dropdown menu - Added by Nick Gorbikoff over 15 years ago

I think you can apply a regex expression on the field - something - like allow 4 chars only no, with the first letter being capital or like all smalleters or something and then in the name of the field give them a hint like Favorite Food (all small letters)

I know it's not great - but that's how I worked it out.

RE: Custom field with dropdown menu - Added by Nick Gorbikoff over 15 years ago

/^[a-z]{4}/
like this will match only 4 letter combination and will take a-z at the beginning of the string . Will not allow caps

this is a Test right here

Will match only "this"

RE: Custom field with dropdown menu - Added by Nick Gorbikoff over 15 years ago

Highly recommend http://www.rubular.com/ - to test your ruby regex.

RE: Custom field with dropdown menu - Added by Stanislav Kollov over 15 years ago

TKS Nick!

But it's not what I'm looking for, but it can be a solution. I'll try study source code and find out a solutions.

RE: Custom field with dropdown menu - Added by Nick Gorbikoff over 15 years ago

Yeah I agree that a predefined dropdown easier but at least you can validate data...

    (1-5/5)