- Posts: 12
- Thank you received: 2
Ask the community, share ideas, and connect with other LimeSurvey users!
/^([a-z]{1})$/
.em_regex_validation.emtip.good { display:none; } .em_regex_validation.emtip.error { display:none; }
This looks like a bug in the Javascript-Validation. I'm not a RegEx-Expert but this look alright to me.Bielefeld wrote: Just cross checking:
Same regex behaviour with the original default template.
Any ideas?
/^[a-z]$/
Validation on page via JS (in the browser) and validation after hitting a button to submit page via PHP (on the server). The JS validation seems to be not working with your RegEx. I wondered what happen, when you enter a invalid answer (which isn't prevented by the JS-validation) and submit it to the server.Bielefeld wrote: Your point of JS vs. PHP regex-validation is not clear to
me. Is it, that on some levels (preview perhaps) JS-regex
is used, and on other (live survey) PHP-regex is used?