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
mdelgadomdelgado 

Problem getting Account name from Opportunity

Hello,

 

I am implementing a custom button to redirect a user to one of my custom modules (Project__c).

 

I created the following logic for my button

 

{!IF(ISPICKVAL(Opportunity.Service_Required__c,"Edu Marketing"),URLFOR("/" + $ObjectType.Project__c + "/e", null, [RecordType="012M00000008ZW3",ent="01IC000000j3Bl",Account__c=Opportunity.Account,Name=Opportunity.Name], true),URLFOR("/" + $ObjectType.Project__c + "/e", null, [RecordType="012C0000000GC20",ent="01IC000000j3Bl",Name=Opportunity.Name], true)))}

 This works....BUT.....I am not able to get Opportunity account name to populate with project custom field.

 

Can someone tell me why this does not work?

 

thanks,

 

Mirko

Andy BoettcherAndy Boettcher

You have to go into the source of the Project__c edit page and find the exact HTML input Id of the field you want to pre-populate.  (It's not the object/field name exactly)

 

Put that reference in your button URL string and you're set to go.

 

-Andy