How to make a dynamic select with DHTMLX

Hello,
Please! I can dynamically select which two elements from the database, and the elements (options) are sort of second select based on element selects the first select.

I do not know how, that’s why I come to you this morning.

Thank you for your help

Hello
Try the next attachment. It is quite close to your request.
About serverside: you need to use DataProcessor
docs.dhtmlx.com/doku.php?id=dhtm … cessor:toc
form_multiselect_choose.rar (1.32 KB)

Thank you you’re interesting Darya

But I only ill-posed problem, in fact I want two combo, where the second is loaded depending on the element selected in the first. and all of the element from the database

<html>
	<head>
	<link rel="stylesheet" type="text/css" href="dhtmlxForm/codebase/skins/dhtmlxform_dhx_skyblue.css">
    <script src="dhtmlxForm/codebase/dhtmlxcommon.js"></script>
    <script src="dhtmlxForm/codebase/dhtmlxform.js"></script>
    <script>

var myForm,
formData;
function doOnLoad() {
    formData = 
	[
		{
			type: "settings",
			position: "label-left",
			labelWidth: 130,
			inputWidth: 120
		},
		{
			type: "select",
			label: "Categorie",
			options: 
			[
				{
					text: "Admin",
					value: "admin"
				}, 
				{
					text: "Organiser",
					value: "org"
				}, 
				{
					text: "Power User",
					value: "poweruser"
				}, 
				{
					text: "User",
					value: "user"
				}
			]
        },
		{
			type: "select",
			label: "Produit",
			options: 
			[
				{
					text: "Admin",
					value: "admin"
				}, 
				{
					text: "Organiser",
					value: "org"
				}, 
				{
					text: "Power User",
					value: "poweruser"
				},
				{
					text: "User",
					value: "user"
				}
			]
        }
	];
    myForm = new dhtmlXForm("myForm", formData);
    // or
    // myForm.loadStruct(formData, "json");
    }

</script>	
	</head>
	<body onload="doOnLoad();">
		 <div id="myForm" style="height:500px;"></div>
	</body>
</html>

I apologize for the misunderstanding, because this is my English level which is the cause of all

Thank you for your help

Here is a sample for you
form.rar (70.6 KB)

Thank you so much !!!

You are welcome!

Is this still an issue in version 4.1?

Hello, AakeTraak
It was question about 3.6 version