Don't have an account?
Search for an answer or ask a question of the zone or Customer Support.
You need to sign in to do that
Sign in to start searching questions
Signup for a Developer Edition
Sign in to start a discussion
I want to copy a text field data to another text field . Both the fields are on the same object Task.
Hi,
Let me know when you want to do it this copying activity.
Regards,
Sridhar Bonagiri
There are two fields :
1. Task Comments
2. Comments
When ever a new value is entered in Task Comments , i want to store that in Commnets .
Task Comments may have new value but Comments will track all the historic data of Task Comments.
You mean to say that 'Comments' field should contain all the old values of 'Task Comments'. Am I correct?
Yes..
Comments should track all the text entered in Task Comments
Will you display this 'Comments' field on VF Page.
This is can be achieved in two ways. 1. By writing a trigger, 2. Add some javascript code in VF page.
This requirement is to copy the value and to display it on the same record (page) . No need of any Visualforce page.
I need help on the trigger
Hi Raj,
try the following code,
for(Candidate__c irow:Trigger.new){ if(System.Trigger.oldMap.get(irow.Id).Tcomment__c != irow.Tcomment__c ) { // you can copy the value into another field here }}
Hi,
Let me know when you want to do it this copying activity.
Regards,
Sridhar Bonagiri
There are two fields :
1. Task Comments
2. Comments
When ever a new value is entered in Task Comments , i want to store that in Commnets .
Task Comments may have new value but Comments will track all the historic data of Task Comments.
Hi,
You mean to say that 'Comments' field should contain all the old values of 'Task Comments'. Am I correct?
Regards,
Sridhar Bonagiri
Yes..
Comments should track all the text entered in Task Comments
Hi,
Will you display this 'Comments' field on VF Page.
This is can be achieved in two ways. 1. By writing a trigger, 2. Add some javascript code in VF page.
Regards,
Sridhar Bonagiri
This requirement is to copy the value and to display it on the same record (page) . No need of any Visualforce page.
I need help on the trigger
Hi Raj,
try the following code,
for(Candidate__c irow:Trigger.new)
{
if(System.Trigger.oldMap.get(irow.Id).Tcomment__c != irow.Tcomment__c )
{
// you can copy the value into another field here
}
}