Loading
Enhance Salesforce with Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Tips on Building S-Controls

          Tips on Building S-Controls

          Use these tips when building s-controls.

          Required Editions

          Available in: Salesforce Classic
          Available in: Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions
          User Permissions Needed
          To create, edit, and delete custom s-controls: Customize Application
          Important
          Important Visualforce pages supersede s-controls. Organizations that haven’t previously used s-controls can’t create them. Existing s-controls are unaffected, and can still be edited.
          • If you create a URL s-control, do not select Show Section Heading on Detail Page in the page layout section where you put the s-control. This option in conjunction with collapsible sections causes some problems in certain browsers.
          • Use global variables to access special merge fields for components like custom buttons, links, and s-controls. For example, the $Request global variable allows you to access query parameters inside a snippet, s-control, or custom button.
          • Use the {!$Organization.UISkin} merge field in your s-control to retrieve the User Interface Theme that the organization has selected. The Theme1 value for this merge field represents the Salesforce Classic theme and Theme2 represents the Salesforce theme.
          • S-controls use the {! and } characters (previously used to surround merge fields in formulas) to enclose an expression, which can include one or more merge fields, functions, or global variables.
          • When overriding an action, use the no override argument to prevent a recursion, indicated by empty frames on the page.
          • To insert activity merge fields, select Event or Task from Select Field Type.
           
          Loading
          Salesforce Help | Article