worthy-azureW
Refine2y ago
29 replies
worthy-azure

How to do conditional rendering in forms with Antd?

I'm trying to make a field that is only displayed according to the state of another form field, however, using form.getFieldValue I'm not having success, the values ​that come from the API are not recognized as soon as the api loads, however, using onValuesChange behavior is correct after loading the api, but the initial values ​are not recognized to show the field, how to fix this problem?

https://gist.github.com/torugok/edf059216f5aec208897bb6a1ca38f23
Gist
Code error antd. GitHub Gist: instantly share code, notes, and snippets.
Code error antd
Was this page helpful?