You need to sign in to do that
Don't have an account?
gringoese
Need Text Area (Long) field for an Activity Task
Is there any possible way I can create a Text Area (Long) field type for an Activity Task? I don't see any option for this when creating a custom field. I need it badly.
There seems to be a lot of random limitations when working with Activity Tasks and Events which is very frustrating.
gringoese,
Additional Long Text Area fields are not available on Tasks and Events. The standard "Description" field is a LTA with a 32,000 character limit, so that may suit your needs.
There may be ways to get the behavior you want, but it would require additional coding and implementation. One idea that may work would be to create a custom object which contains as many LTA fields as you need along with an 18 character text field to hold a salesforce.com id.
The idea would be that you would override the Task create page to display a VF page that has all of the task fields and then text boxes he number of LTA fields you created on the custom object. When you save the Task, you would have the Apex controller also create a custom object record. The text areas would populate into the custom object LTA fields and the Task ID would populate into the 18 character text field. You would then have to create a Visualforce page to verride the Task View page so that you could display the Task record and the custom object record.
Obviously this would be a bit of extra work, so it would depend on your specific needs.
Hope this helps
Jay
jhurst -
I am new to Visualforce, and I am looking to exactly what you suggested in this post - could you explain how to make the apex controller create the custom object and populate the 18 character text field. an example code would be great as well.
thank you in advance for any help.
Bob
Bob,
As mentioned, this would be a quite significant amount of coding (especially to test it completely). I would not really be able to give you a full working solution.
An example of the page to display the records would be:
And the extension would look like:
This would show the Task Detail and display the LTA_1__c field on all associated Task_LTA__c records (the Task_LTA__c would be a custom object which contains a field calles Parent_Task__c which would be the 18 character task ID, and a LTA_1__c field which would be the long text area).
You would have to build the edit/new page which would replicate the exisitng task create, and then add LTA fields. On the save action, you would save the Task information, and then add a new Task_LTA__c record with the Parent_Task__c field set to the ID of teh task that was created and the LTA_1__c field set to the value you entered on the Task edit page.
The VF Docs should be able to help you a bit further, too - http://www.salesforce.com/us/developer/docs/pages/index.htm
Hope this gets you started
Jay
Your examples were great I was able to build what I needed from them. I am stuck though on how to get the Task ID to populate in the custom object Parent Task field. I thought it would be a simple = statement - but that didn't work - most likely because it is the wrong way. Could you help out again? How do I get the task ID and put it in the Parent field?
Again I appreciate your help, I have been scouring the web for idea's.
Bob
There are quite a few examples on the discussion boards :)
I found this one - http://boards.developerforce.com/t5/Visualforce-Development/BUG-New-Task-from-Opportunity-with-Edit-link-Override/m-p/131165/highlight/true#M13577
From there, I put together a VF page and an Apex class:
This worked in the few simple tests I did. Note that the saveAction() method sets the value:
Hope this helps.
Jay
How did you test the Apex class?
Thanks
Glynn