Readonly field based on another field SuiteCRM 8

Hello everyone,

I’m working on a customization in SuiteCRM 8, and I need to make a field read-only based on the value of another field in the Leads module. Specifically, I want to set the name field to be read-only when the status field is set to “Closed”.

Given that SuiteCRM 8 uses Vue.js for its frontend, I understand that modifying view.edit.php isn’t an option as it was in previous versions. I’d like to know the best approach to achieve this conditional read-only behavior in SuiteCRM 8.

The following link can help. Set targetDisplayType='readonly'

Nope, doesn’t work. targetDisplayType only supports “show” or “none”