Skip to content
New issue

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

No way to set FormContext #45

Open
stocks29 opened this issue Jul 6, 2019 · 0 comments
Open

No way to set FormContext #45

stocks29 opened this issue Jul 6, 2019 · 0 comments

Comments

@stocks29
Copy link

stocks29 commented Jul 6, 2019

The FormContext is explicitly set within FormRenderer without allowing for the component consumer to set/override any values. This makes it very difficult to base on field off of another, such as updating a state/province dropdown to display states once a country has been selected.

The formContext object
You can provide a formContext object to the Form, which is passed down to all fields and widgets (including TitleField and DescriptionField). Useful for implementing context aware fields and widgets.

From: https://react-jsonschema-form.readthedocs.io/en/latest/advanced-customization/#the-formcontext-object

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant