Check documentation for the latest version of dhtmlxSuite Integrating with FORM Tag DHTMLX Docs

Integrating with FORM Tag

dhtmlxCombo automatically integrates in surrounding FORM tag. While submitting such form, two form fields will be sent to server side:

  • COMBONAME - value of combobox
  • COMBONAME_new_value - true if value is text entered in combobox, false if value is one of items from predefined list of combobox

If combo is initialized by the next command:

  var z=new dhtmlXCombo("combo_zone3","alfa3",200);

server-side script will receive fields with names "alfa3" and "alfa3_new_value".

Note! Fields get values when combo loses focus. If the form is submitted right after the new value is entered, this value can not be sent. To solve the problem we recommend to call the confirmValue() method on form submit.

Back to top