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
daltondalton 

custom button and links problem

i have cutom button in my Expence__c

 

in expense_c i have a field called as entity_name__c(lookup(Account))

 

so i have displaytype as  List Button

 

behavior as Display in existing window with sidebar

 

and i dont know what url should be placed  so want kind of url is to be palced 

 

your answer will be greatly appricatied


Shashikant SharmaShashikant Sharma

In Your case Content Source You can opt for 

1) URL : Here you can provide any valid URL 

2) OnClick JavaScript : You can execute a javascript

3) Visualforce Page : You can select any page which has Same object as Standard Controller on which you have list button and has recordSetVar as well means uses standardsetController

 

See this for more: 

https://ap1.salesforce.com/help/doc/user_ed.jsp?loc=help&target=defining_custom_links.htm&section=Customizing 

bob_buzzardbob_buzzard

You haven't said what behaviour your button is providing - that makes quite a bit of difference as to what URL is placed there.

 

What should the button do when the user clicks on it?