Check out the LimeSurvey source code on GitHub!
Welcome, Guest
Username: Password:

TOPIC: Custom Validation Script?

Custom Validation Script? 2 years 7 months ago #107927

  • cshaw
  • cshaw's Avatar
  • Offline
  • Senior Lime
  • Posts: 62
  • Thank you received: 5
  • Karma: 4
Do you know if it is possible to call a JavaScript function for validation?
<script>
   function validateCode(SecretCode){
       return SecretCode=="CANDY";
   }	
</script>

The administrator has disabled public write access.

Custom Validation Script? 2 years 7 months ago #107950

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 6574
  • Thank you received: 1477
  • Karma: 579
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 administrator has disabled public write access.
The following user(s) said Thank You: cshaw
Time to create page: 0.234 seconds
Imprint                   Privacy policy         General Terms & Conditions         Revocation information and revocation form