Can you send other forms or form elements with the comboajax

Hey,

I have a dhtmlxcombo on a form, and when the ajax call goes to the server, I would like to send some other form data with the call so the combo filter can depend on what is selected. Is it possible to do this without doing everything manually?

Thanks,
Chris

Hello,

if you ask about combo in autocomplete mode, there isn’t such an public functionality. However, it’s possible to add the necessary parameters to the autocomplete url as follows:

combo.enableFilteringMode(true,url+"?param1="+document.getElementById(…).value+"&param2="+document.getElementById(…).value);

This method should be called each time the value of some form element’s changed.