I am implementing forms that have a lot of conditional logic, the problem is that re-hidden fields retain their values. This is causing other fields that have conditional logic based on those fields to appear where they shouldn't.
Is there a way so that when fields are hidden their values return to the default state?