Hi community,
I want to make a Subgrid dynamically read-only. I added a subgrid in one of the entity forms and I would like that the subrid gets read-only after the first interaction. More specifially: I want that the user is able to associate data in the subgrid for the first time they see it. After the first time (when subgrid contains data) I want that it gets read-only and not editable from the user. Does someone know a way to achieve this?
I could achieve that for entity form fields with custom JavaScript but I don't know how to do that for the subgrids.
Thanks in advance for the help!
Cheers,
Selim