Welcome, Guest
Username: Password:

TOPIC: Custom Validation Script?

Custom Validation Script? 2 years 1 month ago #107927

  • ohvelma
  • ohvelma'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 1 month ago #107950

  • tpartner
  • tpartner's Avatar
  • Offline
  • LimeSurvey Team
  • Posts: 5890
  • Thank you received: 1291
  • Karma: 520
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: ohvelma
Moderators: ITEd
Time to create page: 0.963 seconds