Hi,
I have a form which use a “block” and I would like to change the blockOffset dynamically, is there any ways we can change it once the form was initially built?
formData = [
{ type: "fieldset", name: "theInfo", label: "", inputWidth: "auto", list:
[
{type: "settings", labelWidth: 30, inputWidth: 130},
{type:"input", name: 'inp1', label:'inp1'},
{type:"input", name: 'inp2', label:'inp2'},
{type:"input", name: 'inp3', label:'inp3'},
{type:"input", name: 'inp4', label:'inp4'},
{type:"input", name: 'inp5', label:'inp5'},
{type:"input", name: 'inp6', label:'inp6'},
{type:"input", name: 'inp7', label:'inp7'},
{type:"input", name: 'inp8', label:'inp8'},
{type:"input", name: 'inp9', label:'inp9'},
{type:"block", id:'myBlock', width:200, blockOffset:10,
list:
[
{type:"input", name: 'inp10', label:'inp10'},
{type:"input", name: 'inp11', label:'inp11'}
]
}
]}
];
myForm = new dhtmlXForm("myForm", formData);
// This doesn't exist but is what i would like to be able to do?
myForm.getItem ('myBlock').blockOffset = 40;
Thanks!