Getting Started with DeskDirector
DeskDirector Portals
Browser Support
What is the DeskDirector Admin Portal?
What is the DeskDirector Tech Portal
What is the DeskDirector Client Portal?
Desktop Portal
Managing Your Account
Admin Essentials
DeskDirector Features Overview
Logging in to DeskDirector
User Profiles & Profile Pictures
Managing Tickets with DeskDirector
Office Hours
Getting Started with the Solution Library
How Searching Works
Embedding Help Page Media
Get started with the DeskDirector Power Automate Connector
Features
Portal Customization
Forms
Service Catalogue
Communication
Email Connectors
Notifications
Email Notifications
Actionable Messages for Emails
Real-Time Chats
Email Template Engine
Surveys
Broadcasts
Generative AI
DeskDirector with Generative AI
Ticket Summary for TECH Portal
Setting up AI Service Providers
Microsoft Foundry for DeskDirector
Knowledge Bases for AI Assistants
Custom Tools for AI Assistants
AI Assistants in DeskDirector
Advanced
Login & Authentication
Contact Groups
Custom Domains
File Storage
Dashboard
Accounts
Contacts
Approvals
Tags
Task Lists
The Learning Center
Portal Deep Linking
Auditing & Analytics
Microsoft Power Automate
Actions
Solutions
Featured Solution: Teams Ticket Discussion
Power Automate Template Gallery
Featured Solution: Ticket Briefing
Power Automate Administration
DeskDirector Power Platform Connector Reference
Power Automate Connector - Setting up your first flow
Microsoft Teams App
Introducing the DeskDirector for Microsoft Team App
Installing the Microsoft Teams App (Client Mode)
Installing the Microsoft Teams App (TECH Mode)
Setting up Tags for Teams Discussions (TECH Portal)
Branding the DeskDirector Teams App
DeskDirector Teams App Notifications
Contact Groups Integration with Microsoft Teams
Setting up Content Security Policy (CSP)
Advanced topic: Setting up Tech & Client Mode in the same tenancy
Integrating Microsoft Teams with DeskDirector Tech Portal
Smart Alerts for TECH Users
Integrations
Developer Resources
Getting Started
What is the Toki Iti API
API Versions & Routes
Roles & Scopes
Authorization Options
Querying the API
How to Change an Entity Through the API
API Key Authorization
OAuth Fundamentals
Understanding OAuth for Tokity Integrations: Key Concepts
OAuth Authorization Code Flow: How an App Gets Access to Tokity
OAuth App Registration
How to Register an OAuth App to Integrate with Tokity
Choosing an OAuth App Type: Confidential vs. Public Apps and Client Secrets
OAuth Personal Secrets: What They Are and When to Use Them
OAuth Administration
Configuring OAuth Settings in Tokity
Managing OAuth Authorized Sessions and User Consent
Granting OAuth Admin Consent at the Root Level
API Response Control
Uploading Attachments (Ticket API)
The Prefer Header — Overview
Controlling Returned Data (Ticket API)
Controlling Returned Data (Form Result API)
Controlling Returned Data (Workspace API)
Workspace Ordering
How Workspace Ordering Works
Creating and Reordering Workspace Groups
Adding and Reordering Tickets in a Workspace Group
Data Sync & Notifications
Delta API: Tracking Changes Over Time
Webhooks vs. Events — Differences, When to Use Which
Verifying Webhook and Event Payloads (HMAC Signature)
Ticket Widgets
Ticket Widget: Overview
How the Widget Is Requested
Ticket Widget Anatomy and Styling
Ticket Widget Actions: Leading, Secondary and Primary
Ticket Widget: Progress Type
Ticket Widget: List Type
Ticket Widget: Description Type
Ticket Widget: Form Type
Ticket Widget: Control When a Widget Refreshes
Ticket Widget: Form Results and State Across Steps
Ticket Widget: Error Responses and Debugging
Ticket Widget: Building a Multi-Step Request
Glossary
Security
Troubleshooting
Troubleshooting via Web Developer Tools
Permissions & Access - Common Issues
Contact DeskDirector Support
Troubleshooting DeskDirector Connection Issues
Desktop Portal - Common Issues
Contact Impersonation
Approvals - Common Issues
Microsoft Teams App - Common Issues
Email & Email Delivery - Common Issues
Login & Authentication - Common Issues
DeskDirector Desktop App - Installation Issues
Table of Contents
- All Categories
- Developer Resources
- Ticket Widgets
- Ticket Widget: Form Results and State Across Steps
Ticket Widget: Form Results and State Across Steps
Updated
by Helpdocs Admin
Every widget response can include two properties, form and state. They let your API pass information from one step to the next without storing anything itself.
In short: the UI sends the form and state of the widget it is currently showing along with the next request. Whatever you put in a response comes back to you on the following one.
This is an advanced topic. Read the Form article and How the Widget Is Requested first.
The rule
When the UI requests a widget, it sends the form and state it currently holds. The UI keeps answers while the page stays open, and sends all of them, not only the current field's.
- Next step: the request carries every answer the UI holds, plus the
stateit holds. - Page reload, or opening a new ticket: there is no widget on screen yet, so
formis empty andstateis not sent. The flow starts from the beginning.
The UI keeps nothing else. It does not remember earlier widgets or choices.
state
state holds text keys with text values. It is yours to use. The UI sends it back exactly as the widget had it and never changes it.
Typical uses:
- Where the user is:
"step": "2". - What already happened:
"approved": "true". - Ids found earlier:
"assetId": "LT-0042".
Every value must be a string. To store a number or a list, encode it yourself, for example "ids": "4,7,9".
To change state, return a new one in your next response.
form
form holds the user's answers: a field identifier mapped to the chosen choice identifiers.
- If the widget is a Form and
formalready has an answer for its field, that answer is shown as selected. - If the user changes the selection, the answer for that field is updated in what is sent.
- The answer is stored by the field's
identifier. Answering a new field adds an entry. - If the user goes back and changes a field, that entry is replaced. Other entries are untouched.
- Answers from earlier fields stay in
form, without your API returning them.
You can also return answers in form to show them as selected.
Example
Step 1 asked about accessories. Your response for step 2 may include the earlier answer in form, so it shows as selected. This is optional: the UI already holds it,
{
"type": "form",
"title": "Delivery",
"value": {
"type": "single_choice",
"identifier": "delivery",
"name": "How should it be delivered?",
"choices": [
{ "identifier": "post", "name": "Post" },
{ "identifier": "pickup", "name": "Pickup" }
]
},
"form": { "accessories": { "choices": ["bag", "mouse"] } },
"state": { "step": "2" },
"primaryAction": { "label": "Next", "url": "/widgets/order/confirm" }
}The user picks Pickup and presses Next. The next request contains:
{
"form": {
"accessories": { "choices": ["bag", "mouse"] },
"delivery": { "choices": ["pickup"] }
},
"state": { "step": "2" }
}accessories is kept by the UI. delivery is the user's new selection. state comes back as you sent it.
Going back
A reload clears everything. If the flow must survive it, store progress in your own API, keyed by the ticket and by who is reading it (identify the user with the delegate token, see How the Widget Is Requested). If it doesn't need to, store nothing, and the flow starts again.