Hi,
i am create a form but my knowledge on programming lacks when it comes to dhtmlxForm.
I made a simple form and succesfully submited it to a server. Then i had to add an extra input fields and it stopped working ( can not be submitted )
This is what causes the problem based on my debuging:
{type: “block”, list: [
{type: “radio”, name: “timeRelation”, value: “0”, label: “Този строителен обект не е свързан с времеви интервал на изпълнение”, labelWidth: 500, position: “label-right”, checked: true, offsetTop: 5},
{type: “radio”, name: “timeRelation”, value: “1”, label: “Този строителен обект е свързан с времеви интервал на изпълнение”, labelWidth: 500, position: “label-right”, list: [
{type: “input”, name: “startDate”, label: “Начална дата:”, position: “label-top”, inputWidth: 150, labelWidth: 150, validate: “NotEmpty”},
{type: “newcolumn”},
{type: “input”, name: “endDate”, label: “Крайна дата:”, position: “label-top”, inputWidth: 150, labelWidth: 150, validate: “NotEmpty”}
]}
]},
form.attachEvent(“onBeforeValidate”, function(id) {
alert(id);
if (!iconId)
{
alert("Трябва да изберете икона!");
if (typeof iconChooseWindow === "undefined")
initIconChooseWindow();
iconChooseWindow.show();
iconChooseWindow.center();
iconChooseWindow.setModal(true);
return false;
}
return true;
});
So when i remove that block code it works. When i add it it does not work.
Any solution?