Hello everyone,
hope you are doing well!
I have a very similar question like Mauricio (see related question).
I have a standard single select question type, where it has a Respondent specify ("Other Specify") option. Currently, the textbox accepts all kinds of values. However, I would like to configure the textbox to accept only letters (from A-Z), and e.g., No figures.
Zachary showed in the related question (many thanks for this), that I need to use Custom Javascript Verification. But since I am not an JavaScript ninja, I would very much appreciate your help for this question.
I guess I can take this script:
var resp = SSI_GetValue('[% QuestionName() %]_3_other');
var regex = /[0-9]+/;
if (resp && !regex.test(resp)) {
strErrorMessage = 'Error.';
}
would need to change: var regex = /[0-9]+/; to something else?
Or do you see any other option?
Many thanks in advance!
Regards from Austria,
Alfons