I have created some dynamic fields and want to make them required.
I am using the following code and it works but I need to create a loop in case there are more than 2 fields



function...