0

I am trying to use URLFOR but my VF page does not compile.

This is my code :

<apex:page standardController="Fishing_Session__c" showHeader="true" >
<apex:outputLink value="{!URLFOR(Action.Account.New)}">New Account</apex:outputLink>
</apex:page>

Error message : Unknown property 'Fishing_Session__cStandardController.Action'

1 Answer 1

1

It's $Action, not Action.

<apex:page standardController="Fishing_Session__c" showHeader="true" >
  <apex:outputLink value="{!URLFOR($Action.Account.New)}" >
    New Account
  </apex:outputLink>
</apex:page>

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .