For this trigger:
trigger CompileQuickNotes on Contact (before update) {
for( Id accountId : Trigger.newMap.keySet() )
{
if( Trigger.oldMap.get( accountId ).Log_Notes__c != Trigger.newMap.get( accountId ).Log_Notes__c )
{
Contact c = Trigger.newMap.get(accountId);
//add information into quick notes field (with time stamp)
String note = c.Log_Notes__c;
String log = c.Quick_Notes__c == null ? '' : c.Quick_Notes__c;
c.Quick_Notes__c = log + '[' + DateTime.now() +']: ' + note + '\n';
//clear log notes field
c.Log_Notes__c = '';
}
}
}
New lines do not seem to register on the Contact Page. I read alot of solutions of how to do it within visual force, but I wanted to know if there is a solution for pure apex trigger and the Contact page. I've tried all the suggestions pertaining to visualforce with no avail.