Skip to main content
I am trying to build a custom button that goes to different URLs depending on certain criteria. Rather than trying to build the logic into the custom button itself, I've created a formula field that outputs the correct URL depending on the criteria.

 

How can I have the custom button follow the URL that is in this formula field? I've tested the formula field - when you click on the URL it opens correctly. I put the formula field name in the custom button content section, and when I click on the button I get the error message below. Is there a better way of doing this? Thank you so much for your help!

 

Custom button that references URL in custom formula field

 

User-added image
4 Antworten
  1. 14. Aug. 2012, 17:34
    Thanks for the help, Nik! The URL is another salesforce page, so I took out the http:// in the formula field and started it with cs12.salesforce.com/therestoftheURL and added the http:// to the button. Now when I click the button I don't get an error message, but just a blank page. Any ideas? Also, if I put the actual URL in the button content it does work, so I don't think it's an issue with the URL itself, but maybe how I am dividing it between the formula field and the button content.

     

    Thanks for the help, Nik! The URL is another salesforce page, so I took out the http:// in the formula field and started it with and added the http:// to the button.
0/9000