Hi,
Close, but when you have multiple conditions in an if statement they need to reference the object's value separately. I would put this in the exit event of the numeric field:
// Hide all fields
FieldA.presence = "hidden";
FieldB.presence = "hidden";
FieldC.presence = "hidden";
// if/else statement
if (this.rawValue < 6) {
FieldA.presence = "visible";
}
else if (this.rawValue > 5 && this.rawValue < 16) {
FieldB.presence = "visible";
}
else if (this.rawValue > 15) {
FieldC.presence = "visible";
}
The last one could just be an else statement, without the test.
Good luck,
Niall