Avatar

Level 6
Try this variation in your event.value code

var v1 = +getField("numerator").value;
var v2 = +getField("demoninator").value;

event.value = (v2 !== 0) ? (v1 / v2) : "";

This code assumes the input fields have a numeric format type. You
would replace "numerator" and "demoninator" in the code above with the
names of your fields.