When submitting a utility application, an individual is required to provide their social security number (SSN) or a business is required to submit their employee identification number. I have field rules that hide the SSN or EIN depending on whether the customer is an individual or a business. If they aren't hidden, I want them to be required. However, upon form submission, the error is thrown for "Field Name: Employer Identification Number, Position: 20, Error: This value is required. [LFF9300-ValueRequired] [LFF9312-ErrorOccuredDuringFormsValidation]"
Is there a way to ignore required fields when they are hidden? Or, conversely, only require the fields when they are not hidden?