How to update props on condition? #1000
-
I need to update prop Here is what I expect to work
But above one is not working. I tried Any idea how can I acheive same? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
We unfortunately do not support setting props via conditions. However, it's achievable via resolveProps, check this demo: https://codesandbox.io/s/poc-forked-525pk I think you missed the important part: set |
Beta Was this translation helpful? Give feedback.
-
@thecodejack there is a working example: https://codesandbox.io/s/poc-forked-6o574?file=/src/App.js But read this comment first: #1000 (reply in thread) |
Beta Was this translation helpful? Give feedback.
-
We added multiple examples to documentation how to handle all your problems with resolveProps: https://data-driven-forms.org/examples/resolve-props-example (if you can't see it, refresh page to clear the cache) |
Beta Was this translation helpful? Give feedback.
We added multiple examples to documentation how to handle all your problems with resolveProps: https://data-driven-forms.org/examples/resolve-props-example (if you can't see it, refresh page to clear the cache)