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
shruthikashruthika 

Urgent: Trigger to update a field value when clicking the renew button which navigates to a new page

Hi all,

 

Am very new in apex code. Here is my new task which tells like there is a renew custom button in agreements when i click that renew button it opens the new page with cloned information of old page except with some fields like Status and Status Category. Now i want a write a trigger in such a way that whenever the renew button is clicked the Status and Status Category should be updated as Activated and save them.

 

Please send me the solution as soon as possible

 

Thanks in Advance,

Shruthika.

sfdcfoxsfdcfox

You wouldn't use a trigger for that. Instead, you'll want to create the code to update those fields on the new edit page. You may want to use the URLFOR function to make this easier.

shruthikashruthika

Hi,

 

Thanks for replying. If its not trigger and want to create the code to update those fields on the new edit page or to use the URLFOR function. could you please provide more information with the sample of code how to do this task.

 

Thanks in Advance,

Shruthika.