I want to hide a field dependent of the value of an other field.
I use a client side event at the specific field:
{ // keys = event types, values = handler functions
"change": function(e) {
if (this.value == 2) {
$(this).fields("Tests_1").visible(false); // true to show, false to hide
$(this).fields("Tests_2").visible(true);
} else {
$(this).fields("Tests_1").visible(true);
$(this).fields("Tests_2").visible(false);
}
}
}
But how do I manage to do so when the view or edit page is loaded without the change function?