Wizard: get clearOnUnmount answers back when navigating through form #1108
-
I am building a wizard form and have conditional questions that should be clearedOnUnmount if the user chooses a different answer before they move t a different page, but should be persisted otherwise when navigating through the form. However, when the user goes to the next page, because the answer is marked, clearOnUnmount, the answer does not persist and if you click on the back button, the answer goes away. How can I keep the answer persisted when the user clicks the next and back button, while still maintaining the clearOnUnmount if the user chooses a different answer? I have a very simple example here: https://stackblitz.com/edit/fdmahc?file=schema.js So basically if the user clicks on "airforce" a conditional question appears that should clear when the user selects a different option on that page, but should otherwise persist its answer when you click on the next/back button. If you answer that conditional answer then move forward and then back, the answer clears. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Correct link here: https://stackblitz.com/edit/fdmahc?file=schema.js |
Beta Was this translation helpful? Give feedback.
Correct link here: https://stackblitz.com/edit/fdmahc?file=schema.js