I am trying to auto populate the custom fields in the editor but no luck.
here is what I thought would work by assigning the value to the textBox but nothing...
var someValue = "My value";
var myTextBox = new dijit.form.TextBox({
id: "firstname",
value: someValue
});
var txtEmail = new dijit.form.TextBox({
id: "email",
value: "my email here"
});
var layerInfos = [{
'featureLayer':featureLayer,
'showAttachments':false,
'showDeleteButton':true,
'fieldInfos':[
{'fieldName':'name','label':'Name','customField': myTextBox},
{'fieldName':'email','label':'Email','customField': txtEmail}
]
}];