How to disable subform records dynamically

How to disable subform records dynamically

Hi Everyone
I have a requirement to dynamically disable or hide subform fields based on certain criteria. However, the code I tried didn't work as expected. It either disabled or hid all the fields in all subform records or none at all. What I actually want to achieve is to disable or hide subform fields in each subform record individually. Can you please help me with this issue?

 for each rec in Founders
 {
if ( row.Added_Time < zoho.currenttime.addMinutes(3) ) 
   {
  disable row.Full_Name;
     }
  else 
    {
enable row.Full_Name;   
    }
 }