You need to sign in to do that
Don't have an account?
marie.tourne
Error: Field $Action.Contact.New does not exist. Check spelling
Hello,
I have the error : Error: Field $Action.Contact.New does not exist. Check spelling
My code is as follows :
<apex:commandButton Value="New Contact" action="{!URLFOR($Action.Contact.New, id )}"
Whereas it says in the documentation the new action for contacts should normally be supported :
Any ideas ?
(I found a workaround by using the hard-coaded URL for creating a contact but I would prefer to use Action if possible)
Thanks by advance !
I guess in the code snippet you don't need to pass the id as parameter and use the standardController attribute thats the reason its throwing error
<apex:page standardController="Contact" >
<apex:commandButton Value="New Contact" action="{!URLFOR($Action.Contact.New )}" />
If you look at the Contact object, under buttons, links, and actions, that is the name listed.