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

Custom Link and button -- help


I was able to pass data to 2 fields from contact to a candidate object.  The contact name is currently a master detail datatype for candidates. The current company field is a lookup datatype in the candidate object. I created a custom button called new canidadate which create a new record from contacts to canidate. When this is done, the contact name from contacts and it's associcated company name gets populated in caniddate. The problem is, it is looking at all nameS in the database that have that name. For example, John Do is in company A and Company b. They are different contacts but when I click new caniddate it tells me to pick from the drop down  with the different John Dos as values to choose from. How do i get past this?? It should only bring in the contact id that i orginally was working with before i pressed new caniddate

You have to pass the contact ID as well as Contact name in the link to have unique values.
For example your link should be like this
You can get ContactID  name from the browser by clicking on 'New' Standard Button in Candidate list on Contact Object