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
Laura SquiresLaura Squires 

Custom Button Coding

Just wondering what code I would need to have to cdreate a custom button on the products related list under opportunities that will filter the products by Product Family, any ideas?
SandhyaSandhya (Salesforce Developers) 
Hi Laura Squires,

Please refer below post for similar discussion you may get some idea.

http://salesforce.stackexchange.com/questions/100448/i-want-to-add-custom-button-in-products-related-list-of-opprtunity-or-add-produ
 
Hope this helps you!.

Please mark it as solved if this helps you so that it will make available for other as a proper solution.

Thanks and Regards
Sandhya
Laura SquiresLaura Squires
Hi Sandhya, Thank you this is very helpful. My button works, the only issue is that it doesn’t actually perform the filter. I still have to click Search. Is there a way to automate that within the button?
Laura SquiresLaura Squires
Never mind, I figured it out. srtOrd works. 
Laura SquiresLaura Squires
One more question. Currently it opens the new URL within the existing Salesforce window so it shows the tabs twice. This may get confusing to users. How would I get it to just open it normally like any other screen?