Custom form for edit enrollment in tracker programs

Hi all,

As part of a requirement I’m working on, there is a need to create read-only fields on tracker programs when creating/editing the new/existing enrollment.

I have created a custom form for the tracker program to make all the data elements read-only, but as the tracker program says: the custom form only appears when creating a new enrollment and not appearing when editing the enrollment (as the tracker program says explicitly that it is a registry form).

I have tested with event programs and custom forms works fine for both new and editing events.

Is there a way to allow the custom form to work on edit enrollment in tracked programs?
Is there a workaround to achieve the same result (like disabling the edit button and adding a custom plugin with the custom form)?

Thanks in advance for the support.