Hello @ohtusabes
Could you please share the equation’s code to check the issue?
Best regards.
Thread Starter
PB
(@ohtusabes)
Hi @codepeople2
The code is as follows:
(function(){
var x = Number(fieldname12);
if (x === 0) return 'Controlar cada 2 horas';
if (x >= 1 && x <= 4) return 'Controlar cada 4 horas';
if (x >= 5) return 'Controlar cada 6 horas';
return '';
})()
Thank you.
Hello @ohtusabes
Your equation is correct and functions perfectly. However, note that fieldname43 was configured to depend on the value of fieldname12. Specifically, in fieldname12, you set a dependency to activate fieldname43 only when fieldname12 equals zero. Then, in the equation for fieldname43, you reference fieldname12, creating a cross-reference that invalidates your equation.
Please remove the dependency from the fieldname12 field’s configuration to resolve this issue.
Best regards.
Thread Starter
PB
(@ohtusabes)
Hi @codepeople2
You’re right. I tested a dependency while exploring the options and inadvertently left this one in.
Thank you very much!