Can dhtmlxCombo in FORM with autocomplete accept new value

We are using a combo in a form that uses autocomplete to list Company of our contacts when adding new. But we try to get the combo to accept a new input. A value not listed in the combo. but only get the value “undefined” when submitting the form.



Kind regards

Frank S. W.


Hello,


the issue wasn’t reproduced locally. Please, see attached sample


submit.zip (20.3 KB)


We didnt get it to work with the example you provided. I try to explain again:



With basis in you example, your xml contains:




 one
 two
 three
 four
 five
 six
 seven
 eight
 nine
 ten




What we want to do from web is tho add option “Eleven” or “Twelve” from the autocomplete box. So that users can dynamically add more options as time goes. Here is our code based on the example you provided us:






 FORM integration
 
 
 
 <script  src=“codebase/dhtmlxcommon.js”>
 <script  src=“codebase/dhtmlxcombo.js”>
 


FORM integration


Combo can be integrated with form.
The additional element in the submit array - NAME_new_value - gives information about a value: either  it has been selected or user added new text. Element is set as “true” when selected value isn’t equal to any of the options, else its value is “false"


From select box


 test submit
 
  

 




Try to use getComboText instead of getSelectedText as the last one return text of existent options


function hallo() {
data = z.getComboText();
var dataB = dump(data);
alert(dataB);
}