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
Darya
May 17, 2013, 10:27am
#2
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
Darya
May 17, 2013, 2:33pm
#4
Here is a sample for you
form.rar (70.6 KB)
Is this still an issue in version 4.1?
Darya
January 23, 2015, 9:48am
#8
Hello, AakeTraak
It was question about 3.6 version