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

dynamically change the answer data #298

Open
ajay1800spirits opened this issue Feb 27, 2024 · 0 comments
Open

dynamically change the answer data #298

ajay1800spirits opened this issue Feb 27, 2024 · 0 comments

Comments

@ajay1800spirits
Copy link

How to dynamically change the answer_data? As in I built a form and I want to update certain inputs based on other inputs and using the onChange prop in the reactFormGenerator component update the answer_data's value using a state variable. And while my state variable is updated correctly the answer_data is not changing. My option currently is to force re-render the form and using the key prop in reactFormGenerator and have its value change for everytime onChange is called forcing a re-render. Is there a cleaner way to dynamically change the answer_data in the form?

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