Welcome, Guest
Username: Password: Remember me

TOPIC: Custom Validation Script?

Custom Validation Script? 3 months 1 week ago #107927

  • ohvelma
  • ohvelma's Avatar
  • OFFLINE
  • Junior Lime
  • Posts: 39
  • Thank you received: 1
  • Karma: 1
Do you know if it is possible to call a JavaScript function for validation?
<script>
   function validateCode(SecretCode){
       return SecretCode=="CANDY";
   }	
</script>

validate.png
The administrator has disabled public write access.

Custom Validation Script? 3 months 6 days ago #107950

  • tpartner
  • tpartner's Avatar
  • OFFLINE
  • LimeSurvey Team
  • Posts: 4071
  • Thank you received: 748
  • Karma: 341
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.

LimeSurvey is open-source and run entirely by volunteers so please consider donating to support the project.
The administrator has disabled public write access.
The following user(s) said Thank You: ohvelma
Moderators: ITEd
Time to create page: 0.118 seconds
Donation Image