Not applicable

@Ankur Yes, you are right my script works reliably in Classic/Native UI, but in Workspace it depends on how the field is rendered. For a fully Workspace-safe solution, using UI Builder properties or the Workspace compatible client script approach would be more reliable.