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


Hi all, I am trying to assign a LookUp field's value to tag. i.e. apex:outputLink value={!reb.Name} target="blank" Here Name is my Lookup Field. The reason why i m doing like this is i want that when I click on the link, It should open in a new page. The problem is I m not getting the VALUE of the lookup field. I am getting ID (15 DIGIT ) as the link. Can anyone please help ??
Best Answer chosen by Admin (Salesforce Developers) 

I think Here Name is Variable Right?

Here The Name your getting from class .

So When you return that Name variable from class .. Before you have to assign the field value

Not api only

like this            Name=field__r.Name