This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

mustMatch in JQuery Autocompleter

Forum to discuss ExtJS and other JS plugins

mustMatch in JQuery Autocompleter

by Goshka » Tue Mar 30, 2010 3:02 pm

Hi all,

I have a problem with JQuery autocompleter, used via sfFormExtraPlugin. Everything works fine and as expected, except for when mustMatch option is set to 'true'. Then if I start to type into the input form, some suggestions appear. If I click on one of them, or go down the drop down window and chose one, then everything works fine. But if I type in the word (a should be accepted word), the form is not accepted! Anybody has any ideas what can be wrong and how to correct it?
The curious thing is that such typed in input does not disappear, as it should and it does for input not matching the list of accepted words.

I'll be very grateful for any suggestions,

My widget is here:
$this->widgetSchema['ingredient_id'] = new sfWidgetFormDoctrineChoice(array(
'model' => $this->getRelatedModelName('ingredient'),
'multiple' => false,
'renderer_class' => 'sfWidgetFormJQueryAutocompleter',
'renderer_options' => array(
'url' => '/ingredient/autocomplete',
'value_callback' =>array('ingredient','getIngredientName'),
'config' => ' {
scrollHeight: 250 ,
autoFill: true,
cacheLength: 1,
delay: 10,
max: 10,
mustMatch: true,
selectFirst: false
Junior Member
Posts: 8
Joined: Mon Mar 15, 2010 3:57 pm