Using Custom JavaScript and CSS in Marketplace Apps

Introduction

The CRM platform allows developers to enhance agency-distributed Marketplace Apps by adding Custom JavaScript and CSS. This feature provides greater control over the app's behavior and appearance, enabling personalized user experiences and advanced functionality.

Distribution Requirements

To use custom JavaScript, your app must have a distribution type of Agency or Agency & Sub-account.

Review Process

All custom scripts must be submitted for review before they can be deployed. The review process typically takes up to 10 business days. Once approved, your scripts will be embedded into your agency's apps.

Guidelines for Custom Scripts

Follow these guidelines to ensure your scripts pass review:

  • Sensitive Data: Do not access sensitive data to prevent conflicts or unintended data manipulation.
  • Code Clarity: Avoid obfuscated code. Scripts must be readable and transparent.
  • Database Access: Do not directly access the database.
  • Remote Files: All logic must be self-contained. Remote file references are not allowed.
  • Embedding Scripts: Ensure JavaScript is properly embedded within <script> tags.
  • Console Logs: Remove all console.log statements from production scripts.

Testing Your Scripts

Before submission, thoroughly test your custom scripts. You can add them to the Custom JavaScript & Custom CSS section found in the Agency view under SettingsCompany. If you don't have agency access, create a sandbox account to test in a simulated environment.

Following these guidelines helps maintain a secure and reliable platform for all users.