You are here:
Enhance Quotes with Custom Scripts
Use JavaScript code to add extra functionality to the CPQ quote line editor. Custom scripts are called by the Quote Calculator Plugin. (Salesforce CPQ Managed Package)

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Use JavaScript code to add extra functionality to the CPQ quote line editor. Custom scripts are called by the Quote Calculator Plugin. (Salesforce CPQ Managed Package)
| Available in: Salesforce CPQ Winter ’16 and later |
Salesforce CPQ calculates quotes based on products, schedules, and configurations made in the quote line editor. Calling a custom script in the Quote Calculator Plugin is the only way to change how the quote calculator uses this data to compose the quote. For example, to add an extra discount to designated lines on the quote, use a custom script. Or, use a custom script to change field visibility. Find out more about supported methods and view sample scripts in the Quote Calculator Plugin section of the Salesforce CPQ Plugin Developer Guide.
Custom scripts can’t be used to create invalid calculation conditions, such as setting up consumption rate tiers that overlap.
Select the custom scripts object in the app picker to view, create, or edit your custom scripts. You can create multiple scripts, but the Quote Calculator Plugin can only call one script.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.