SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Synced Option Tabs

Demonstrate synced OPTION tab groups that remember the reader's choice across every step of a tutorial, using the `syncTabs` frontmatter flag and the `sync=` qualifier on OPTION blocks.

Overview

You will learn

  • ✔How to turn on synced option tabs with the syncTabs: auto frontmatter flag
  • ✔How to group OPTION blocks into a synchronized set with the sync=<group> qualifier
  • ✔How a reader’s choice in one step carries to every other step automatically
SAP Developer Advocates S SAP Developer Advocates November 6, 2026
Created on November 6, 2026
Contributors

More from SAP Developer Advocates

See all 6 tutorials by SAP Developer Advocates →

Prerequisites

  • Basic familiarity with the tutorial OPTION block syntax (see v2-example-tutorial)
  • Basic familiarity with CAP

Steps

Step 1 Step 1: Initialize the project
—

Pick your runtime and initialize a new CAP project.

Run npm init -y && npm add @sap/cds-dk to initialize a Node.js CAP project.

Then scaffold the project structure:

Shell
cds init my-cap-app
cd my-cap-app
npm install
Step 2 Step 2: Add a service
+
Step 3 Step 3: Run and test
+
Step 4 Step 4: Review what happened
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Step 1: Initialize the project 2. Step 2: Add a service 3. Step 3: Run and test 4. Step 4: Review what happened