Salesforce Dictionary - Free Salesforce GlossarySalesforce Dictionary
Full Inline S-Control entry
How-to guide

Migrate an Inline S-Control to a Lightning-friendly equivalent

The migration steps are the same as for any S-Control: inventory, pick a target framework, rewrite, swap references, retire the old asset.

By Dipojjal Chakrabarti · Founder & Editor, Salesforce DictionaryLast updated May 21, 2026

The migration steps are the same as for any S-Control: inventory, pick a target framework, rewrite, swap references, retire the old asset.

  1. Inventory Inline S-Controls

    Setup, Custom S-Controls. Filter by Type = HTML and look for Inline-rendered ones referenced in page layouts.

  2. Pick the target framework

    Visualforce inline page for a like-for-like replacement; Lightning Web Component for modern Lightning Experience integration.

  3. Rewrite the HTML and JavaScript

    Translate the S-Control content into the target framework. Replace AJAX Toolkit calls with @AuraEnabled Apex methods. Use the framework''s component library for UI elements.

  4. Add to the page layout or Lightning Record Page

    For Visualforce: add the inline page section to the layout. For LWC: drop the component onto the Lightning Record Page.

  5. Remove the Inline S-Control reference

    Edit the page layout, remove the S-Control section. Save the layout.

  6. Test and delete

    Test the new implementation. Once confirmed working, delete the original Inline S-Control to clean up metadata.

Gotchas
  • Inline S-Controls do not render in Lightning. The empty layout region is the visible signal of unfinished migration.
  • The S-Control editor is removed; existing Inline S-Controls cannot be modified, only replaced.
  • AppExchange packages built on Inline S-Controls may be unsupported in current Salesforce releases. Plan vendor outreach as part of the migration.
  • Lightning Web Components have stricter security than Inline S-Controls (Lightning Locker). Some JavaScript patterns that worked in S-Controls do not work in LWC.

See the full Inline S-Control entry

Inline S-Control includes the definition, worked example, deep dive, related terms, and a quiz.