If you have work on 5.x. it is really easy.
And without any javascript.
1. question (Q1) (short text): "Please, enter your name"
2. question (eqName) (equation): {statCountIf(Q1.sgqa,Q1)}
You will get a value of "0", if the name was not entered before.
Now you may set a quota on this equation to screen out all respondents with a value >0.
Now a small problem.
The quota doesn't work with this comparison ">0".
So change the equation to
2. question (eqName) (equation): {if(statCountIf(Q1.sgqa,Q1)>0,1,0)}
and you set the quota to
You have to decide, if you will wait till a respondent submits the questionnaire or not.
If you wait till he submits, then it is possible that - while the first answers the questionnaire - a second with the same name is allowed to enter.
But anyway: "Miller", "Miller ", "MILLER" are different names.
You may convert the names to uppercase and trim them to avoid this.
Joffm