Display element onLoad event not firing
Posted: Thu Sep 20, 2018 4:21 pm
I have a Display object that shows the result of a SQL calculation. I tried setting the Custom Code section to run this code on the Load (onload) event:
However, the onLoad event never seems to set this off. I have checked to see that my code works by setting it to fire under the onBlur event, which all works fine.
Any idea why the onLoad event doesn't fire for this object? Does it have anything to do with the nuLoad() function?
Code: Select all
if (parseFloat($("#my_object_id").val()) > 0) {
$("#my_object_id").css("color", "red");
} else {
$("#my_object_id").css("color","black");
}
Any idea why the onLoad event doesn't fire for this object? Does it have anything to do with the nuLoad() function?