We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
var fieldsHidden = true ... ... ...
onValueChange(){ const formValues = this.formGenerator.getValues(); formValues.selectname['id'] !== '1' ? fieldsHidden = false : fieldsHidden = true }
const fields = [
{ type: 'select', name: 'Organization', multiple: false, required: true, label: 'OrganizationType', labelKey: 'name', primaryKey: 'id', objectType: true, options: [ // required { id: 1, name: 'Health',
}, { id: 2, name: 'Finance', } ], defaultValue: [{ id: 1, name: 'Health', }],
},
{ type: 'text', name: CompanyName', label: 'Company Name', hidden: fieldsHidden, }, ]
its not working
The text was updated successfully, but these errors were encountered:
You can't right now. The lib does not update the fields. I will do a PR for this once the owner of the project @bietkul answers my email.
Sorry, something went wrong.
Merge pull request #25 from luissmg/master
4576d82
Add possibility to update Form fields (hidden, options, ...). Fixes #19
No branches or pull requests
var fieldsHidden = true
...
...
...
onValueChange(){
const formValues = this.formGenerator.getValues();
formValues.selectname['id'] !== '1' ? fieldsHidden = false : fieldsHidden = true
}
const fields = [
{
type: 'select',
name: 'Organization',
multiple: false,
required: true,
label: 'OrganizationType',
labelKey: 'name',
primaryKey: 'id',
objectType: true,
options: [ // required
{
id: 1,
name: 'Health',
},
{
type: 'text',
name: CompanyName',
label: 'Company Name',
hidden: fieldsHidden,
},
]
its not working
The text was updated successfully, but these errors were encountered: