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

When ever a account created



I have Got requirement like this....When ever a account created, some of the fields from account should automatically populate into Opportunity , that means when i click new opportuinity some of the accounts fields should appear there..




anil 007anil 007


hai mahe,


i think u need to write apex triggers on the account object ,let me know it works or not ,


Create new button "New Oppty" behavior of this button as "Onclick javascript".


write js script to prepopulate oppty fields....


then redirect to oppty edit page



Trigger will not work in this case....


You can also create a Formula field when you select account from look up and create a new opportunity then your formula fields gets updated from there.