function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
RjSanchezRjSanchez 

Trigger on Task when a call is placed from a Lead

I have created a trigger for a new task is created. It checks the status to verify it is completed and it's status is either Call or Email:

 

Everything was working fine until I realized that the Subject field of 'Log a Call' can be typed in even though it has a selection offered as a combo box. And anything they type becomes the subject of the task created.

 

When 'Send an Email' is chosen, the subject line is a blank field as one might expect, however when it is saved it places 'Email:' at the beginning of the string.

 

What I would like to do is have the 'Log a call' action place 'Call:' in front of whatever is typed in the subject combo. But I'm not sure where to start.

 

Am I making sense? :) Is this possible?

I would appreciate any suggestions you may have.

 

  Thank you,

    Ramon