Please help us help you and fill where relevant: Your LimeSurvey version: [see right hand bottom of your LimeSurvey admin screen] Own server or LimeSurvey hosting: Survey theme/template:
==================
Hi,
I'm using CE 6.6.1 using our own servers.
I'm trying to get a surname field to only allow text and one hyphen, no numbers or other chars.
I've added a regex to the regex field for the surname. The field highlights when invalid chars are entered but doesn't remove them.
Regex = /^[a-zA-Z]+(-[a-zA-Z]+)?$/
Does this need some javascript attaching to the survey to achieve this?