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
SF OperatorSF Operator 

Custom Links in Custom Visualforce Page

How can I use custom links on custom visualforce pages? 
Agustin BAgustin B
Hi, check this out you can use $Action:
If it helps please mark as correct, it may help others.
SF OperatorSF Operator
Thanks for your fast reply. I get this error: Field $Action.Home.Comercial_Documents does not exist. Check spelling.
Agustin BAgustin B
Hi please post the definition of your custom link and how you are calling the <apex:outputLink value="{!URLFOR($Action.Home.Comercial_Documents )}"> in your VF.
Check that if Home is a custom object you have to use $Action.Home__c.Comercial_Documents

If i am being helpfull please like or if your query is solved mark as correct.
SF OperatorSF Operator

Label Comercial Documents
Object Name Home
Name Comercial_Documents

<apex:outputLink value="{!URLFOR($Action.Home.Comercial_Documents}"></apex:outputLink>
<apex:outputLink value="{!URLFOR($Action.Home__c.Comercial_Documents}"></apex:outputLink>

I tried both ways but I'm getting the same error


Field $Action.Home__c.Comercial_Documents does not exist. Check spelling.

I can use those custom links in my homepage using salesforce interface but I can't with custom vf pages

Thanks for your reply

Agustin BAgustin B
Hi, it has to be something there on the name of your custom link.
This article has another option using a:href but you will have the same issue, check the api name of your custom link.