Collapse required fields

Hi There,
I hope you can help me.
In cases I need to hide required fields, sounds strange but it is right that way.
I collapse the fields but when submitting the data I receive a validation error.
Do required fields still need data inputs even if they are collapsed?
And would there be a fix for it without coding defaults for the collapsed fields?

Thanks,
Pat

Hello, Pat.

Using conditional statements you can set the input field to be required or not.

For example, you can set the required property to be false and then hide/collapse them.

https://www.wix.com/corvid/reference/$w.TextInput.html#required