Hi,
I have some numeric fields (different questions) on a page.
If the total equals 100 then they can go to the following page, otherwise they have to change the values.
So I created a javascript:
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('form#limesurvey').submit(function(){
if({INSERTANS:7371X1505X1865}+{INSERTANS:7371X1505X1866}+{INSERTANS:7371X1505X1867}==100) {
return=true;
}
else
{
return=false;
}
)};
)};
</script>But it doesnt work.
Any ideas what the problem could be?
Where do i have to put this?
In one of the questions? or on the page?