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
OptimusPrimeOptimusPrime 

How to make a s-control to overwrite default functionality

Hello Everyone,

I am new to Apex, salesforce.com and the salesforce.com application platform.

I have an app that creates a task after an user fills a form and saves it. When this task, created through the workflow and rules engine, shows on my task list on the home tab it has the related to field point to the account(contact) on who the taks(really the form) is based off. I would like this auto-generated taks to have its related to field point to the case not the account.

I've been trying to use an S-Control to create the task for me. I can't place the S-control on the save button of the form. The only way I see this possible, where i create the task, is by going through the workflow engine and under the workflow rule->Actions do a outbound message. To call a script somewhere else.

How can I approach this? Through Apex code/Java? S-Control?

Thanks in advance