You need to sign in to do that
Don't have an account?
abhi_developer
how to return custom objects home page on command button click
hi all,
i am trying to return custom_objects home page when i click on command button.
i have written this code but its not working.
<apex:commandButton value="gototab" action="{!$Action.custom_object__c.Tab}"/>
please suggest me a way of doing this in visualforce with command button only.
-Abhishek singh
<input type="button" class="btn" value="Go Home" onclick="window.location = '{!URLFOR($Action.customobject__c.Tab, $ObjectType.customobject__c)}'" />
if you must have a button (although buttons are typically best reserved to convey some type of mutating operation like a Save or Edit) or
<apex:outputLink value="{!urlFor($Action.customobject__c.Tab, $ObjectType.customobject__c)}">Go Home</apex:outputLink>
if you decide to use a link instead...