Reset field attributes

Quentin, thanks for taking the time to answer, but that I know, it is not the problem. Re " What’s the link between your conditional requires and the reset? ", the following: Wix has a bit of a quirk in its forms. If you put a input text box on a form, make it “required” and set the field to “hidden” or collapsed, your validation will prob say something like “Error: please fill out the required fields, marked with a red border”. But there will be no field with red border, because it is hidden/collapsed.
So, the form I have is pretty complex: under condition A boxes 1,2 and 3 should expand, under condition B only 1 and 2, and the “required” attribute varies per option.
The key point in my problem description is " But … the form stays resident, it is not reloaded when ddvalue changes. " Meaning: under condition 1 fields A and B are required, under condition 2 fields C and D. But, the form can be filled out endless amount of times. If you first fill it out under condition 1 and later under condition 2, ALL fields are mandatory (incorrect): condition 1 sets A and B as required, condition 2 sets C and D as required, but A and B are not reset, so all 4 are required (and A and B are prob. hidden, triggering the problem I started out with). So before you accept a new state (1 or 2), you first have to reset all values to non-required/enabled/checked/collapsed (like they are set in the editor), then make some fields required/disabled/unchecked/expanded. This, to overcome the problem of “accumulation of required (and other attribs) fields”.
So I can iterate thru all children, check its type and reset it, but now I am defining its initial “blank as a baby bottom”'s state twice: once in the editor and once in code.
So I was just wondering if there was some way to retrieve the initial attributes per field as set in the Editor, to prevent from doing it twice.
In short, I am looking for a) reset field attribs to Editor values or b) a NO_VALIDATE param to collapse/hide to prevent the problem I described at the top: if a field is required BUT it is hidden or collapsed or its parent is, then do not trigger validation.
It’s late here, to me it makes perfect sense now, and I can only hope it does to you too. If not, do not hesitate to let me know. Good night/good morning.