who changed a field last?

Hello

   what i'm trying to achieve here is some sort of tracking/audit of a checkbox and display that on the campaign layouts. To be more specific i would like to know right next to the checkbox who was the one that enabled/disabled that checkbox. This value should only change if the checkbox was 'ticked' if the campaign changed it shouldn't change the modified by on the checkbox

Modified by next to checkbox

   When i created the field i checked the 'audit' option, does that keep track of those events? can we pull it from there? tried the documentation but couldn't find much about audit fields.

Thank you

Sergio

Parents Reply
  • Hello André Lopes

       question, i went to ./custom/Extension/modules/Campaigns/Ext/Vardefs and found a sugarfield_pricing_discussed_c.php which is the automated file generated when i created the custom field (at least that's my guess) is it ok to use that file and add the code you provided me to it or do i need to create a new file?

     

       What you provided me looks exactly the same as what it has right now, i just added your line to it which contains the 'readonly' = true part but it didn't do anything that's why i'm asking if i need to create a separate file

Children