Welcome, Guest
Username: Password: Remember me

TOPIC: Custom Validation Script?

Custom Validation Script? 1 year 14 hours ago #107927

  • ohvelma
  • ohvelma's Avatar
  • OFFLINE
  • Senior Lime
  • Posts: 59
  • Thank you received: 3
  • Karma: 3
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? 11 months 4 weeks ago #107950

  • tpartner
  • tpartner's Avatar
  • NOW ONLINE
  • LimeSurvey Team
  • Posts: 4720
  • Thank you received: 952
  • Karma: 410
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.108 seconds
Donation Image