This is very common that some times we need to set value into another field based on change event or into form load event. Normally we define the code into load event and into change event. We can replace the load event using fireOnChange();
if (formContext.getAttribute("studentid")) {
formContext.getAttribute("studentid").fireOnChange();
}
If this field value has change event then you do not need to define into load event. fireOnChange() event will work for load event.
Comments
Post a Comment