Find your content:

Search form

You are here

Salesforce Standard JavaScript


There are some JavaScript functions used by the standard Salesforce pages that would be useful outside of the Standard pages. For example, the Account page has a "Copy Billing Address to Shipping Address" link that calls a copyAddr JS function. I'm building a custom VF page and would like to use that same functionality; however, I'd rather not build on top of something that is not relatively stable.

I can't find a Salesforce reference to standard Salesforce JavaScript functions. A standard JavaScript API seems like it would be useful.

  1. Does anyone use these JS functions? If so, which ones?

  2. Is there such a reference?

Attribution to: Peter Knolle

Possible Suggestion/Solution #1

Unfortunately Salesforce doesn't offer any reference to the standard JS it use via the extJS library on it's pages.

Also the script has been obfuscated and is probably pretty hard to use.

I think your on your own as far as writing custom JS to accomplish this.

At least that's my experience, and at Bracket Labs we use javascript in our apps probably more than any other provider on the AppExchange.

Attribution to: jordan.baucke

Possible Suggestion/Solution #2

Jordan is correct, Salesforce js (and css for that matter) is not officially part of the API, it is subject to change at any time and should not be used by others. Trying to do what you're doing for an in-house thing is kludgy; if it's something you'll be selling it's a 'very bad idea'.

Attribution to: donjay
This content is remixed from stackoverflow or stackexchange. Please visit

My Block Status

My Block Content