AngularJS directive which takes JSON representing a form and renders to HTML
FormlyFieldConfig
type, with a fieldGroup
field {key: "myfile", type: "file"}
however if I log my form model I can't see a myfile
key within returned json. What's wrong with my code??
Hi, can we populate the input field with the help of login api, suppose I login and come to formly form and username, email should be filled with the help of API here
Any comments?
Hi All,
Below is my code. Could please someone help me, how min and max values update dynamically to Age field when user change the value from select box is numeric field in angular-formly ?
fields: FormlyFieldConfig[] = [
{
id: 'numbers',
key: 'numeric',
type: 'select',
className: 'p-inputtext-lg',
templateOptions: {
label: 'Number Type',
valueProp: 'value',
labelProp: 'label',
options: [{
value: 'one',
label: 'One'
}, {
value: 'two',
label: 'Two'
}],
required: true,
onChange: '',
},
expressionProperties: {
'templateOptions.onChange': $viewValue => {
},
},
}, {
id: 'age',
name: 'age',
type: 'input',
className: 'p-inputtext-lg',
templateOptions: {
label: 'Age',
required: true,
min: 1,
max: 18
}
}
]
Thanks in advance.