# What are Screen Flows and how do administrators design interactive user guidance interfaces?

**Topic:** Admin · **Difficulty:** Medium · **Tags:** Admin, Screen Flows, Declarative Automation

Read it on the site: https://www.forcechallenges.com/interview-questions/what-are-screen-flows-and-how-do-administrators-design-interactive-user-guidance-interfaces

## Answer

**Basics:** Unlike record-triggered or scheduled flows, a screen flow runs only when a person starts it and waits for input. It is used for guided intake (new case wizards), call scripts, record updates with controlled fields, approvals-lite and multi-object creation. Flow Builder offers screen components such as Text, Number, Picklist, Radio Buttons, Lookup, File Upload, Data Table, Display Text and Dynamic Forms-like sections.

**How it works:**
1. Setup > Flows > New Flow > Screen Flow.
2. Add Screen elements and configure components; set Required, validation formulas with error messages, and default values.
3. Add logic between screens: Get Records, Decision, Assignment, Loop, Create/Update Records, Subflow, and Action elements.
4. Use Variables (including `recordId` input and output variables) to pass data.
5. Add Fault paths on data elements, then Save, Debug (with a chosen user) and Activate.
6. Launch it: Lightning record page (flow component), Quick Action, Utility Bar, Home page, Experience Cloud, a Visualforce/Aura/LWC embed, or a URL.

**Advanced / deep dive:** Each screen pause commits nothing by itself; element changes run in the transaction until the next screen, then a new transaction starts when the user clicks Next. That means data can be partly saved if the user abandons the flow, so place DML late or use transaction-safe design. Flows run in user context by default; the run mode can be set to System Context with or without sharing for specific cases, which can bypass the user's CRUD/FLS, so use carefully, especially for Experience Cloud guest users. Reactive screen components update fields on the same screen without navigation, and conditional visibility reduces screen count. Custom LWC screen components use `lightning/flowSupport` (`FlowAttributeChangeEvent`, `FlowNavigationNextEvent`) and the `lightning__FlowScreen` target. Limits shared with Apex apply per transaction (100 SOQL, 150 DML), and a flow interview can execute at most 2,000 elements between pauses.

**Code / config example:**
```javascript
// LWC custom screen component: pushes value back into the flow
import { LightningElement, api } from 'lwc';
import { FlowAttributeChangeEvent } from 'lightning/flowSupport';

export default class ScorePicker extends LightningElement {
    @api score;
    handleChange(e) {
        this.score = e.detail.value;
        this.dispatchEvent(new FlowAttributeChangeEvent('score', this.score));
    }
}
```

**Hidden gotchas & must-remember points:**
- The Back button reverts nothing already committed; control it with the screen's navigation settings.
- Users need permission to run the flow, plus object/field access when running in user context.
- Flows cannot be launched by guest users unless the flow is exposed and the data access is intentionally granted.
- Validation on the component fires on Next, not on every keystroke.
- Screen flows can be paused only with the pause feature configured.
- Dynamic Forms and Screen Flows serve different purposes; use a flow when logic spans screens or objects.

**Best practice:** Keep screens few, validate early, put DML at the end, add fault handling and test in debug under a low-privilege user.

---
Source: ForceChallenges · last updated 2026-11-02
