i create form from json
<smart-form id=’formA’></smart-form>
const formA=new Smart.Form(‘#formA’,{
controls:[{
type:’group’,label:’Basic Info’,
controls:{[label:’Name’,controlType:’input’,dataField:’name’]}
}]
});
set individial value not working
formA.setValue(‘name’,’Andrew’); //this not working
formA.getControl(‘name’).value=’Andrew’; not working
formA.controls[0].controls[0].value=’Andrew’; // this not working
`
so what the right way to set individial control created by JSON
-
This topic was modified 2 years, 9 months ago by Joko Pitoyo.