-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Hide form fields based on value of other form fields? #316
Comments
@joshuakoh1 You could use |
@Dennis-Mwea Do you mean I'll declare a separate bool value on init then set that with onChanged of the form field that is responsible for the visibility value? Because my current setup throws an error "NoSuchMethodError: The method '[]' was called on null" as the state has not been initialised unless the form has been submitted.
|
@joshuakoh1 Yeah you have to declare separate bool value on init then set that with onChanged of the form field that is responsible for the visibility value. This is what I did
|
Hi @joshuakoh1! |
Due to lack of response and an old error, I will close this issue. |
Using _fbKey.currentState.fields['dependent_field'].currentState.value does not work, throws the error that customState was called on null
The text was updated successfully, but these errors were encountered: