Sorry if i don't get it correctly, but duplicating the field and setting one version requiered and one version not, and then hiding and showing one or another doesn't solve anything (i'm having the same issue). Let me explain this better:
RadioButtonIsRequired
FieldRequiered
FieldNotRequired
So user clicks the radio button for the option not required. The behaviour of the form makes the FieldRequired Invisible. So we have this:
RadioButtonIsRequired
FieldNotRequired
The user wheter or not fills the "FieldNotRequired", he continues to interact with the form, and then submits it. But he will get and error that FieldRequired is empty. Because the validation of the required field occurs despite de display configuration of the form. So the FieldRequired is invisible, but still required to complete validations and submit the form.
If i get it wrong, i would thank any hint or explanation, or trick to solve this.
Thank you very much.