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
i have an 'option groups' which return main categories,with selecting one main category i want to list subcategory in the drop down
The text was updated successfully, but these errors were encountered:
here's a simplified example of how you can achieve this.
in your schema
main: { autoform: { options: ['m1','m2','m3'] } }, sub: { autoform: { options: function() { var main = AutoForm.getFieldValue(AutoForm.find().formId, 'main'); switch (main) { case "m1": return ["s1a","s1b","s1c"]; case "m2": return ["s2a","s2b","s2c"]; case "m3": return ["s3a","s3b","s3c"]; } } } }
Sorry, something went wrong.
Thanks
No branches or pull requests
i have an 'option groups' which return main categories,with selecting one main category i want to list subcategory in the drop down
The text was updated successfully, but these errors were encountered: