I have a form which includes a subgrid. I want a field in the main form to show only if there are related items in the subgrid for that particular record. But when there are no more records (if removed manually) from the subgrid, I want to hide that same field again.
I know how to apply javascript to event handler on the main form, but i don't know how to add it to the subgrid. I do not see a event tab in the subgrid properties.
As of now my scripts can only be based on main form such as onload, onsave, or on change of fields on the main form. So if I delete a record on the subgrid, i dont want user to need to load, save the main form for the script to run.