Search code examples
javascriptreactjsreact-final-formfinal-form

Get current input field value in Wizard Form Page in React Final Form


Using Wizard form ant trying to understand how to get current input field value in the {activePage}. Can reach input value in Wizard.js but stuck on Index.js Someone know where I am missing the point?

Edit 🏁  React Final Form - Wizard Example


Solution

  • You will have to pull your <Form> component out to as high as you need the values. They are only available inside <Form>.

    It's not strictly recommended, but you could also do something like the Redux Example that updates a Redux store with the current form values.