Hi @arshad2 ,
As per saying in the official doc:
https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/controls/control-card#key-properties
Required – Whether a card, editing the field of a data source, must contain a value.
When "Required" of the Card set to true, it means this Card need value other than blank for submission. The value comes from the controls within this Card and update to data source depends on the Update property. So, as per your scenario, you will need to use the Update property of this Card to determine what value need to be updated. In short words, Controls required or not depend on whether the value of them will be updated in the Card's Update property.
I'm not aware of how the visible of the Controls are performing, but basically you will need an If statement on Update of the Data Card to check the Visible of each control and determine whether the value of it is going to be updated to data source:
If(ddFor, ddFor.Selected.Result, nameInput.Visible, concatenate(nameInput.Text, ddID.Text))
Best regards,