Data validation within a survey

Data validation within a survey

is there a way to have data validation (text in field 2 is not equal to field 1) within the survey?
for example, we are asking for the company's legal name, which can be different than a trade name.
is there a way for me to do this?