Field stops displaying results when mentioned
-
I have a calculated field: fieldname1 and a HTML content-field.
I want the HTML content field to display a different link depending on the result of fieldname1.
I’ve tried this:
<script type=”text/javascript”>
(function(){if (fieldname1 == “”) return “”;
var link = document.getElementById(“link”)
if(fieldname1 < 500) return link.innerHTML=”Under 500″;
else if(fieldname1 > 500) return link.innerHTML=”Over 500″;})();
</script>As soon as i put an if-statement and i mention ‘fieldname1’ in it, fieldname1 stops displaying anything. And also I know that the link will not change because I don’t call the actual link in the method, but the issue i want support on is rather why calculated field stop working when i refer to it from the method?
The page I need help with: [log in to see the link]
- The topic ‘Field stops displaying results when mentioned’ is closed to new replies.