Hi,
I have a working multiselect with a remote datasource with a ton of values (1500+).
The multiselect allows my users to start typing and find the item they're looking for.
What I would like to do is manipulate/verify their search term before actually searching. Here's an example to clarify.
All items are in the same format, six numbers or letters, followed by a dash, followed by 2 numbers, example: 3Z0000-02. The length of the code before the dash is always 6 characters (letters and/or numbers); if a code has only 2 characteristics, trailing zeros are added to pad the code to 6 characters (in the example 4 zeros).
To make searching easier/faster for the users, I want to allow them to type 3Z-02 and show 3Z0000-02 as a result. I know how to manipulate the string itself, but I am looking for a hook in the MultiSelect widget where I can manipulate the search string entered by the user, before it is used for searching.
Is this possible, and if yes, which event should I use to perform this manipulation? A small example of how to manipulate a search string before filtering the datasource would be greatly appreciated.
Regards,
Rinck
I have a working multiselect with a remote datasource with a ton of values (1500+).
The multiselect allows my users to start typing and find the item they're looking for.
What I would like to do is manipulate/verify their search term before actually searching. Here's an example to clarify.
All items are in the same format, six numbers or letters, followed by a dash, followed by 2 numbers, example: 3Z0000-02. The length of the code before the dash is always 6 characters (letters and/or numbers); if a code has only 2 characteristics, trailing zeros are added to pad the code to 6 characters (in the example 4 zeros).
To make searching easier/faster for the users, I want to allow them to type 3Z-02 and show 3Z0000-02 as a result. I know how to manipulate the string itself, but I am looking for a hook in the MultiSelect widget where I can manipulate the search string entered by the user, before it is used for searching.
Is this possible, and if yes, which event should I use to perform this manipulation? A small example of how to manipulate a search string before filtering the datasource would be greatly appreciated.
Regards,
Rinck