You are here:
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 |
- 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
$Requestglobal 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 overrideargument to prevent a recursion, indicated by empty frames on the page. - To insert activity merge fields, select Event or Task from Select Field Type.
Did this article solve your issue?
Let us know so we can improve!

