Hello @luisef
The solution recommended would be:
1. Insert a “HTML Content” field in the form with a DIV tag as its content where would be displayed the results, for example:
<div class="result-here"></div>
2. Edit the equation as follows:
(function(){
var result = "";
switch(fieldname5){
case 1: result = "number one"; break;
case 2: result = "number two"; break;
case 3: result = "number three"; break;
case 0: result = "The study contains no weaknesses Based on this result you should conclude that the trustworthiness of the study is high (90%). This means there is a 10% chance that alternative explanations for the effect found are possible.";
break;
}
jQuery('.result-here').html(result);
return result;
})()
Finally, as the calculated field is being used as auxiliary, you can tick the checkbox in its setting to hide the field from the public form.
Best regards.