Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Custom Validation Script?

  • cshaw
  • cshaw's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
9 years 10 months ago #107927 by cshaw
Custom Validation Script? was created by cshaw
Do you know if it is possible to call a JavaScript function for validation?
Code:
<script>
   function validateCode(SecretCode){
       return SecretCode=="CANDY";
   }  
</script>

Attachments:
The topic has been locked.
  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Community Team
  • LimeSurvey Community Team
More
9 years 10 months ago #107950 by tpartner
Replied by tpartner on topic Custom Validation Script?
No, the question validation equation must follow the Expression Manager syntax and variables.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The following user(s) said Thank You: cshaw
The topic has been locked.

Lime-years ahead

Online-surveys for every purse and purpose