Hello, I made a rule in DocuSeal where I would only see certain fields if a radio button was set to a certain selection. For example, let's say the user selects choice 1 on the radio input , fills out more form fields corresponding to choice 1, but then realizes they made a mistake and meant to choose choice 2. If they go back and change it to choice 2, all the fields corresponding to choice 1 will disappear in the UI. However, on form submission, all the writing corresponding to choice 1 will still be there and it causes a mess.
IMO in cases where an element only exists conditionally, if that element is emitted and then the condition is no longer met, the contents of that element should be deleted.
Hello, I made a rule in DocuSeal where I would only see certain fields if a radio button was set to a certain selection. For example, let's say the user selects choice 1 on the radio input , fills out more form fields corresponding to choice 1, but then realizes they made a mistake and meant to choose choice 2. If they go back and change it to choice 2, all the fields corresponding to choice 1 will disappear in the UI. However, on form submission, all the writing corresponding to choice 1 will still be there and it causes a mess.
IMO in cases where an element only exists conditionally, if that element is emitted and then the condition is no longer met, the contents of that element should be deleted.