Publishing components to Pega
On this page
The studio turns designs into real Constellation custom components and publishes them into a ruleset of your Pega application. This page explains the kinds of component, how to publish each one, how to use it in App Studio, and good practice. It works the same in the online studio and the local one.
The kinds
| Kind | What you select | Becomes in Pega | Typical use |
|---|---|---|---|
| Form template | The whole design (Publish to Pega) | A view template (FORM), <Org>_<Library>_<Name> |
The whole screen of a step: layout, sections, styled fields, banners |
| Field | One field (Export as DX component) | A Field component for one property type (Text, Picklist, Decimal, Date…) | A single property shown your way in any view |
| Widget | A group without fields, or a bound data component | A PAGE/CASE widget | Static content (header, banner, KPI strip) or a live list/chart from a data page |
| Read-only display | Also publish as… (a design or group with fields, or one field) | A view template (DETAILS), Studio_Details_<Name> |
Read-only case data on a case page or Details view, with your layout and look |
| Editable widget | Also publish as… (a design or group with fields) | A PAGE/CASE widget, Studio_Widgets_<Name> |
Fields of the open case edited in place (case-page tab or Utilities) and saved through Pega's Edit details action |
| Companions | Created for you with a form template | Fields and widgets the template needs (range sliders, timelines, gauges, bound data) | Published before the template, automatically |
Export as DX component chooses the kind from the selection and says which one it is at the top of the dialog (for example "Field · Text" or "Widget · PAGE / CASE"). A group that contains fields becomes a form template. The same content can also be published as other kinds in the same go: see Also publish as….
How the studio decides
Both publish dialogs show Publishes as:
Below it they count the design's parts by level (Pega, Custom, App only, Mockup; see the level of every part) and say how many custom component rules the publish creates: Pega raises a guardrail warning for each, and your team maintains them through every Pega upgrade. Parts that are only a picture in Pega are named. Publish all screens (case flows) gives the same guardrail line.
The kind
- Publish to Pega always publishes the whole design as a form template.
- Export as DX component looks at what you selected:
One field (text input, text area, tags, date, dropdown, toggle group, radio buttons, checkbox, switch, slider or rating) → a Field. Its subtype comes from the field's Type: for example a currency input becomes
Decimal-Currency, a plain text inputText, a dropdownPicklist. A dual range binds two properties, so it is not a single Field.Any field inside the selection → a form template.
One data component bound to a data page (table, list, chart, KPI, timeline, to-do) → a live widget that reads the data page in Pega. This also holds when the component sits in a card or layout with only headings, text, badges or dividers around it (the usual "card with a title" widget); with a second data component or other content the selection publishes as a static widget (rule 4). When the data page has no parameters, the widget is configured the Pega way: its gear has a Data page section with Pega's source (for example
D_RecipeList.pxResults) and one property per column (Recipe Name →.RecipeName…), and Pega loads the rows itself. Only the settings the kind uses are shown (headings for tables, the KPI value for KPIs, the chart type for charts). A data page with parameters keeps the data page name and parameter settings (Pega's own data source setting has no parameter mapping; Pega's component gallery does the same). A new placement starts with an empty data page in the gear: until one is picked there, the widget reads the data page it was designed with (so it shows real rows straight away, never the design's sample rows).

Anything else → a static widget (a bindable data component without a data page shows its sample data).
Names
- A component key is
Org_Library_Name, for exampleStudio_Forms_RecipeReview. - Suggested names for a new publish carry the kind:
Studio_Forms_…for Publish to Pega and for form templates from Export as DX component;Studio_Fields_…andStudio_Widgets_…for new Fields and widgets (static or editable);Studio_Details_…for a Read-only display;Studio_Flows_…for case-flow screens (unchanged). Publish to Pega never suggests a case-flow step's name, even when the same design is a step of a flow: a step's screen is published from the case flow.
- Every part of the name stays editable. The studio remembers the names you used last, per design, kind and selection, and suggests them again next time.
- Keys published before this (for example
Studio_Components_…orStudio_Forms_RecipeCaptureForm) keep working. The studio never renames a published component; type the old name to republish over it. - A static widget and an editable widget of the same design get the same default name
(
Studio_Widgets_<Name>). Publishing one over the other gives the warning below; give one of them its own name to keep both.
What a republish under the same name keeps
- App Studio settings stay. The property bindings, labels and data-page settings an author chose live in the view that uses the component, not in the component, so republishing does not reset them.
- Fields keep their bindings. Each field's setting name is fixed per component on the canvas (it comes from the component's id, not its position or label), so a moved or renamed field keeps the property the view gave it.
- New fields have no property in the view yet: with Pega fields you add the new field in its region (or run Set up in Pega); with fields drawn by the template you pick its property once in the view's settings. After that they save like the others.
- Removed fields leave their old setting in the view, unused. It does no harm.
- Changing the kind under one name breaks views. A view that uses a form template cannot use a Field or widget of the same name. Publish the new kind under a new name instead.
The overwrite warning. The studio keeps a record of what it published under each key. Before publishing over a key it warns, and you must tick a confirm box, when the key was last published:
- from another design;
- as another kind (for example a widget over a form template, or a Read-only display over a form template);
- as the other widget variant: an editable widget over a display-only one, or the other way round. Every page that uses the widget changes with it;
- from another part of the same design (a different selection).
When several components are published in one go (see Also publish as…), every warning is listed by component name above one tick, Replace this component anyway or Replace these N components anyway. Ticking it covers exactly those components under those names: ticking or unticking a kind, or renaming one, asks again.
Pega does not refuse a different kind under the same key. Its publish_component service silently replaces a
form template with a widget (or any other kind) published under the same name (seen live on 26.1, 2026-11-18). The
studio's warning and confirm tick are the only guard, and they only know what this browser published.
No record yet. When a key has no publish record in this browser and its name was typed by hand or is an old
Studio_Components_… export, the dialog says so in a neutral note: if the component already exists in Pega, publishing
replaces it without a warning or change list.
What will change in Pega. On a republish the dialog compares the value bindings stored at the last publish with the new package: fields that keep their bindings, new fields that may need a Pega property, and removed fields whose setting stays in the view, unused. Each line names the field by its label (for example "Servings"), never by Pega's internal setting name; two fields with the same label also show their property ("Servings (.Servings)") or their position, and a field without a label reads "Unnamed field". It covers value bindings only (fields, gauges, timelines), not texts, layout or data-page settings.
Companion components (live data widgets, range and timeline fields published with a form template) are published too, but the warning and the change list cover only the main component.
Used for. Each design can say what it is for, in Design settings (click the design name): Step form, Page content (widget), Single field or App page. Left on Automatic it is worked out:
- a screen of a case flow → Step form;
- a Home, Case page or App shell page of a case flow → App page;
- otherwise from the content: fields → Step form, one field → Single field, no fields → Page content.
Checks that follow from it (in Checks and in the publish gates):
- Page content or App page with inputs → error: what people type there is not saved; Pega saves values only from a step form.
- Single field that is not exactly one field with a Pega field type → error.
- Step form with a field that has no Pega property → error, checked when you publish only, so you can design first and bind later. Such a field publishes unbound (shown disabled with a setup message, saving nothing) until you give it a property here or in the template's settings in App Studio; tick Publish anyway to bind it there. The starting templates (for example Loan application, Intake wizard) have fields without properties, so they hit this check until you bind them. Export as DX component only checks it when the whole design publishes as a form template: a single Field picks its property in Pega (Display as).
- Step form without fields → info: fine for a review or confirmation step.
- Widget → a note in the dialog: it goes in a page region (a landing page or Home → Region A), or on the case page in a tab or Utilities.
- App page → Publish to Pega is turned off with the reason: the exported app draws app pages, so they are not published into Pega.
- When Used for and what the dialog publishes disagree:
- Publish to Pega asks you to confirm (a tick) only when you set Used for to Page content or Single field. An inferred Used for only informs ("No fields, so this looks like page content; it will still publish as a form template…"). An App page is blocked outright, with no tick to override it.
- Export as DX component only informs: publishing part of a design as another kind is normal. The one exception is an App page, where it still asks you to confirm.
Why names carry no dates or numbers. A component key is what views point at; a new name each time would leave every view on the old one. To keep versions, publish into a new ruleset version that the application owner creates in Pega (the studio never creates one), and use the studio's version history and its publish record (which design, version, ruleset and time) to see what went where.
Limits of the publish record
- It lives in this browser only and is not kept per space, so after switching spaces or browsers you can see an "another design" warning that is not real, or no warning where there should be one.
- Keys published with Export as DX component before this change (
Studio_Components_…) have no record: their first republish shows the neutral no record note instead of a warning or change list. - Records from before this change hold only the design: the change list starts comparing from the next publish.
- Display-only snapshot publishes are not recorded.
- Redesigning a case-flow step after publishing it gives the "another design" warning on the next publish. That is on purpose: a different design replaces what Pega shows.
- The stored design version is the latest saved version at publish time, not necessarily exactly what was published (unsaved edits are not a version).
- The studio does not ask Pega which keys already exist: a component published outside the studio is not detected.
- Publish records made by a newer studio are dropped by an older one. An older build (a tab left open from before an update, or a rollback) does not know the newer kinds (Read-only display, editable widget) and drops those records the next time it publishes. The result is a missing warning later, never a wrong one.
- Each component of an Also publish as… run gets its own record, written as soon as it is in Pega; a later failure in the same run does not undo it.
Also publish as…
Teams sometimes want the same content as a widget instead of a form, or as a read-only display beside the form. Also publish as… in both publish dialogs publishes the same content as other kinds of Pega component in the same go, each under its own name.
What is offered (only kinds the content can validly be; the dialog's own kind is never offered again):
| Content | Publish to Pega (main: form template) | Export as DX component |
|---|---|---|
| Fields | Editable widget, Read-only display | main form template + Editable widget, Read-only display |
| One field only | Field, Read-only display | main Field + Form template, Read-only display |
| No fields | Widget | main widget + Static step screen (a form template without fields: it shows the screen as designed in a step and saves nothing) |
Nothing is offered for an App page, a live data widget, or a display-only snapshot publish.
How it runs
- Each ticked kind has its own Organisation, Library, Component name and Label, suggested per kind
(
Studio_Details_…,Studio_Widgets_…,Studio_Fields_…,Studio_Forms_…) and editable. - Two kinds under the same name are refused before anything is sent (compared ignoring case, as Pega does).
- The ruleset check runs once, before the first component.
- The components are published one after another (the online publisher builds at most two at a time), main component first. Each warning and change list is per component; one tick confirms them all (see above).
- Results per kind: each published component gets a line saying where it goes in Pega, and is recorded. The first failure stops the run and is shown with its kind and Pega's message; the components after it are listed as not tried. What was already published stays published and recorded.
- Remembered per design: the ticked kinds are pre-ticked the next time you publish this design (from either dialog), so the copies stay in step with the main component.
- The guideline checks gate the main publish only; extra kinds show their own notes (for example fields without a Pega property).
Read-only display
A view template of subtype DETAILS, the kind Pega uses for read-only case data (Details views, the case page).
It is generated from the same code as the form template, so the layout, theme, style and interaction are the same,
but every field is drawn as label + value from the case (through its @P .Property setting, like the form
template's value settings) and it never writes: no inputs, no pre-filled values, no validation. Non-field content
is drawn as designed, and Region A (Fields, Views) holds Pega's own content, drawn at the design's first region,
else below. Value checks are left out; shown when rules stay. Conversations draw their answers as label/value lines;
upload areas are left out.
In App Studio, choose it as the template of a Details view. Run in Pega draws it read-only too (the runner never draws a Details or read-only template as an editable form).
On a case page's Details tab it showed the case's values as plain text, with Pega's own fields in Region A below.
Editable widget
A PAGE/CASE widget that draws the design's layout (columns, free canvas, cards, theme, style, interaction) with its fields filled from the open case, and a Save button that saves them through Pega's own Edit details action, the way the exported app's case page does:
GET cases/{ID}/actions/pyUpdateCaseDetails?viewType=formreads which fields Pega allows and the case's eTag;PATCH cases/{ID}/actions/pyUpdateCaseDetails?viewType=nonewithIf-Matchsends only the changed values.
Inside Pega every request goes through Pega's own client (PCore.getRestClient()), so Pega signs it; the widget never
handles a token. The layout keeps the form template's field controls through a small local stand-in for Pega's field
API: it reads the loaded Edit details values and writes to the widget's own state until you press Save.
- Only on a case page. On a landing page there is no open case: the widget shows a plain note instead of fields.
- Only fields in the case type's Edit details view can be saved. Fields that are not in that view, are read-only there, or are kinds a widget cannot save (file uploads, signatures, multi-selects, references, rich text, timers, rankings…) are shown read-only with an explanation. A case without an Edit details action for you shows a note.
- Fields without a Pega property are never saved. A form template lets you pick the property in App Studio, but a widget has no such setting, so the studio does not guess one from the label: such a field shows its label and "No Pega property was chosen for this field, so it cannot be saved." A range whose upper value has no property of its own shows read-only for the same reason.
- Save runs the design's checks first, like Submit in the form template: a field's own Required and its rules (required / read-only / shown when, value checks). While one fails, Save shows "Not saved." with the message and sends nothing. Pega's own validation (for example a validate rule) still runs when it saves.
- Save is never greyed out, as Pega's design system asks: pressed with nothing changed, it says "Nothing to save: no field has changed." and sends nothing.
- Saving shows its state and Pega's message on failure. When Pega gives a message, the widget shows it; else:
- 423 (or
Pega_API_031): the case is open by someone else (locked); try again later; - 409 / 412, or 403 / 400 with
Pega_API_020/Pega_API_021(an eTag problem): the case changed since the widget loaded it (a stale eTag); reload and try again; - any other 403: you are not allowed to edit this case.
- 423 (or
Changing Servings to 6 and pressing Save wrote it to the case through Edit details (read back 6; the case history says "Performed a 'Edit details'").
Where each kind goes
| Place in App Studio | What it accepts | Our kinds |
|---|---|---|
| Other Views → Form (a step's view) | Template list; region: Fields, Views | Form template |
| Other Views → Partial (Details) | Details templates; region: Fields, Views | Read-only display |
| Full Page View → Tabs → a tab's region | Widgets, Views, Fields, Insights | Widgets (editable widget saves here) |
| Full Page View → Utilities | Widgets | Widgets (open from the utility rail) |
| Full Page View → Summary | Fields, Widgets | Field via Display as (drew the case value; Pega's gear modal shows the Field's own settings with Pega's Required/Disabled/Visibility pickers); widgets are offered (not tried) |
| Other Views → List (tables) | Pega's own Table template only | none: Pega's builder cannot make a custom table template |
| Landing pages / Home (portal) | Widgets, Views | Widgets (live data widgets, checked 2026-11-15) |
| Any view, a property → Display as | Field components | Field |
Pega's UI Designer (26.1). The portal's own UI Designer (purple tab at the top of the portal) offers only Pega's built-in widgets in its Content palette (Agent, App announcement, Pulse, Quick create, Shortcuts, Todo; the list is part of Pega's code, not read from the app), and its Insights list holds Pega Insight rules made in Explore Data. Published studio widgets, like any custom DX widget, are therefore placed in App Studio (landing page regions, case tabs, Utilities), as described above. Its Design tab does list your own Pega themes, including one made from a studio design (see Designing → Use in Pega). It turns Editing on by itself when you open Content; changes made then are saved at once.
Width in Utilities. Pega 26.1 opens a Utilities widget in a 400 px panel, which leaves 368 px for the widget (measured 2026-11-19). Design such a widget on the 368 artboard (the last size button on the canvas toolbar). Tables wrap their text in narrow places, so 3 columns fit without scrolling. When a design is used as page content, the check Too wide for the Utilities panel warns about a table with more than 3 columns or a board: these scroll sideways in Utilities but are fine in a case tab or on a landing page.
Pega fields: configure fields like any Pega view

Publishing mode → "Pega fields, set up with Pega's gear" is the default for a new form template. It publishes the design's layout and look, but the fields are Pega's own, configured in App Studio exactly like in Pega's templates:
Each field the design has (text, number, text area, dropdown, checkbox, switch, radio, date) gets its own region, named after it, for example Servings (.Servings). There are no field settings in the template.
In App Studio, open the view, choose the template, and in each region use Add → Fields to place the property. The field shows as a row with a gear, which opens Pega's own field modal: label, edit mode, Display as, placeholder, helper text, and the Required / Disabled / Visibility conditions.
The template draws each field where the design has it, in the design's card, columns and theme. While a region is empty, the design shows a dashed hint at that place.
A rating, slider, toggle group or tags field (Pega has no control for these) is a region too. The publish adds a Field component in the design's look for it (
<Org>_Fields_<Template><Field>, for exampleStudio_Fields_RecipeFormRating). Place the property in the region and choose that component under Display as in its gear; Set up in Pega chooses it for you.Other components Pega has no field for (a range with two properties, charts, timers, your own components…) are still drawn by the template, with their settings grouped per component. Questions of a conversation stay with the conversation.
Rules become Pega's own conditions. With Set up in Pega → "Add field conditions" ticked, each placed field gets the design's rules in its gear: shown when as its Visibility condition, required when / read-only when as Required / Disabled conditions, and a plain Required tick as Required: Always. App Studio shows them as "Visibility When: (Difficulty level is equal to 'Advanced')". Value checks (minimum, maximum, length, pattern) go into a validate rule with the "Add server checks" option. Without Set up, set them in each field's gear.



Good to know:
- Give each template its own Label in App Studio: the template list shows only the label, so two templates with the same label are hard to tell apart.
- Switching a view from this template back to a Pega template (for example Default form) moves the placed fields into that template's field list. Remove the ones you do not want.
- A template already published the older way (fields drawn by the template, with template settings) keeps that mode when you republish it, so the views using it keep their settings. Switching an existing template's mode shows a note: the views then need their fields placed (or bound) again.
- Set up in Pega places the fields for you: with "Use the template on the step's view" ticked it chooses the template and puts
each field in its region, copying Pega's own entry for that property from the case type's Edit view (so the field
is set up exactly as Pega would). Fields of an embedded page (for example
.CookingDetails.CookingTime), also pages inside pages (.Order.Delivery.Address), are copied from the innermost page class's own Edit view and placed with their full path, the way App Studio adds them (Add → Cooking details → Fields). A field inside a list of pages (a PageList such as.Recipeon Recipe Capture) has no single value for a form field, so it is listed instead: show lists with Pega's table or a repeating view. Regions that already hold a field are left as they are, empty ones are filled, so Set up can be run again after switching an existing template to Pega fields. A property it finds in no Edit view is listed: add it in App Studio.
Data reference fields (pick a record)
A data reference is a field whose value is a record from a data object, picked from a list: a recipe collection, a
customer, a product. Pega stores the chosen record on the case as a page (for example .RecipeCollection). In a form
template with Pega fields, the field is Pega's own picker, drawn where the design has it. It comes in two forms:
- single record: the studio's Reference component; Pega shows a drop-down, a searchable combobox or a table;
- list of records: Multi-select or Checkbox group; Pega shows chips, checkboxes or a table.

1. In Pega, once per field (App Studio, the case type):
- Data model: the case type has the field as a Data reference to the data object (Data model → Add field → type Data reference → the data object, and Single record or List of records).
- Edit view: the field is in the case type's Edit view (UX → Other views → Edit → Add → Fields → the field).
Set its gear there the way you want it everywhere: Display as (drop-down, combobox or table), the data
source (the list data page, for example
D_RecipeCollectionList) and the display field (for example Recipe collection name). Set up in Pega copies the field from this view, settings included; a field that is not in it cannot be copied.
2. In the studio:
Add a Reference component (Form group) for a single record, or Multi-select / Checkbox group for a list.
Set its Pega property:
- a single record: the page followed by
.pyGUID, for exampleRecipeCollection.pyGUID(Pega keys a record by itspyGUID); - a list: the list itself, for example
PairedRecipes.
The Data page and Label property options only change what the canvas shows; in Pega, the field's own gear decides.
- a single record: the page followed by
Publish to Pega with Pega fields, set up with Pega's gear. The dialog lists the field as "place the single Data reference here (Pega's own picker)". The template gets a region named after the field, for example Recipe collection (.RecipeCollection.pyGUID).
3. Place it, either way:
- With Set up in Pega (Publish → step 3, Pega 26.1): enter the step's view and an existing branch, and tick Use the template on the step's view. Set up chooses the template and copies the field from the Edit view into its region, with the same Display as, data source and display field. The result says how many fields it placed, for example "placed 1 field in their regions". A field it does not find in the Edit view is listed instead.
- By hand in App Studio: open the step's view, choose your template, then in the region Recipe collection (.RecipeCollection.pyGUID) use Add → Fields → Recipe collection. Open its gear to set Display as, the data source and the display field. Save the view.
What to expect on a case: the picker lists the data page's records. The chosen record is saved on the case page with its
key and display value, for example RecipeCollection: { pyGUID, RecipeCollectionName: "Quick Weeknight Dinners" }.
The rest of the form stays the template's own (the scan button, the inline edit and the marking in the picture).
Fields without a Pega property
You can publish a design whose fields have no Pega property yet. Such a field saves nothing until it is linked to a real property. What happens depends on what you publish:
| Published as | What Pega shows | How to link it |
|---|---|---|
| Form template | The field's setting in App Studio holds a property name guessed from the label, which usually does not exist, so Pega shows the field disabled with a setup message | In the studio (recommended), or in App Studio: open the view, select the template, set the field's property setting to a real property and save the view. No republish needed; the setting stays across later republishes of the same key |
| Read-only display | No value for that field | Same as the form template |
| Editable widget | The label and "No Pega property was chosen for this field, so it cannot be saved." | Only in the studio, then republish: a widget has no property setting in App Studio |
On a step form the check Field without a Pega property stops Publish until you tick Publish anyway.
A field you add to a design that is already on a view: after you republish, the new field shows in the step at once, in its designed place, but says "Bind this field to a case property." Pega fills a new setting's default only when the template is first chosen for a view, so the property you set in the studio does not reach a view that already uses the template. Open the view in App Studio once, pick the property in the new field's Property setting and save the view (or run Set up in Pega, which adds missing settings with the studio's values). From then on it saves like the other fields; later republishes keep it. Fields that were already there keep their binding.
Recommended: link the property in the studio (Properties → Pega property) before you publish. It is one place, it works for every kind (including the editable widget), the checks stay clean, and Run in Pega and the exported app use the same binding. If the property does not exist yet, Set up in Pega can create it (into an existing branch only). Link it in App Studio only when the property exists only in Pega or someone else owns the view.
Look in Pega: the app's theme or the design's own colours
Publish to Pega and Export as DX component ask how a template should look in Pega (Look in Pega):
- Follow the app's Pega theme (default for a new component, as Pega recommends). The template brings no colours of its own. It reads the application's theme when it opens, so everything in it follows that theme: Pega's components (fields, buttons, cards), and the studio's own styling (card, header, borders, accents), which takes the theme's colours and corners. Inputs and buttons the template draws itself take the theme's corner settings for form controls and buttons, like Pega's own. The design's web font is not loaded: the theme's font applies. When the application's theme changes, the template changes with it; nothing needs to be published again. To make Pega look like your design, add the design's look to Pega as the application's theme (Themes → Kit → Use in Pega, see Designing).
- Keep the design's own colours. The template carries the design's colours and font and looks the same in any application. Use it for a screen that should stand out, or when you cannot change the application's theme. It does not change when the theme changes, and Pega's dark or high-contrast themes do not reach it.
Good to know:
- The choice is remembered per component. A component published before this choice existed keeps the design's own colours until you switch it; the dialog says what a switch changes, so check it in the portal afterwards.
- A Pega theme has no setting for some things. With Follow the app's Pega theme they keep the design's values, and the dialog lists them for your design: gradients, component styles (slider, badge, card and button details), colours set on single components, button and input shapes from the design style, and the colours drawn inside charts, gauges and other pictures.
- App Studio's view preview has no application theme, so there the template shows Pega's default theme. Check the look in the portal.
- Apps you export (a React app, or an app on a Pega backend) are not in Pega: they always carry the design's own look. Run in Pega and the Constellation preview show the design as designed.
- "Also publish as…" templates (read-only display, step screen) take the same look as the main component.
Translations
Published components follow Pega's localization. In Pega fields mode the fields are Pega's own, so Pega translates their labels like any field. Everything else a component draws itself goes through Pega's localization service for the view: add translations with Pega's Localization wizard, and Pega shows them in the user's language. Where Pega has no translation, the text stays as designed. That covers:
- the template's own text: headings, paragraphs, badges;
- pictures drawn as designed (charts, KPIs, case headers and other static content): every heading, label and chart text, and their accessible names, are looked up one by one before the picture is drawn;
- conversations: the questions, the assistant's name, opening and closing messages, and the buttons and messages (Next, Skip, Change, "This question needs an answer.");
- timers, countdowns, signature pads, rankings, multi-selects, pickers, rich text and location fields: their labels and their own words;
- data tables, lists and charts: title, column names and messages ("No items to show.");
- the Editable widget's own words (Save, messages).
Messages with a number or name in them are translated with a placeholder: add a translation for
Enter {0} or more. and the studio puts the number in after translating. Sample data inside pictures is translated
like any other text: a value with no translation stays as it is.
How to publish
- Connect to Pega with a client whose operator may publish DX components, and choose the right Pega Infinity version. That version decides which DX Component Builder builds the component.
- Open Publish to Pega (the whole design) or select something and choose Export as DX component (canvas toolbar, the Properties panel, or ⌘K).
- Check the name. The dialog shows the component key and its App Studio label on one line; press Change to edit them:
- Organisation, Library and Component name make the key,
Org_Library_Name. - The Label in App Studio is what developers see in pickers.
- Organisation, Library and Component name make the key,
- Fix the Pega guideline checks. Errors block publishing until fixed or explicitly overridden.
- Enter the ruleset and version. The ruleset must be unlocked and in your application stack, for example
CustomConstellation:01-01-01. The studio never creates rulesets: before publishing it asks Pega's rule search (with your own Pega sign-in, online and on your computer alike) whether this exact ruleset version already exists, and refuses otherwise. The operator you connect with must be allowed to search rules; if Pega refuses the search, nothing is published. - Press Publish to Pega. The studio runs the same steps as
npm run publishin Pega's own starter project (@pega/custom-dx-components), in the same order, on the studio's server:- Validate config schema: Pega's check of the component's
config.json. - Lint: ESLint with the starter project's own
eslint.config.mjsandtsconfig.json. Like Pega, any error or warning stops the publish; nothing reaches Pega, and the dialog shows ESLint's report (file, line, rule). Every component the studio generates passes it as generated, so this only stops your own React components or a studio bug (please report it). - Build with Pega's DX Component Builder, then send it to Pega's
publish_componentservice.
- It takes about 20 to 40 seconds, plus about 15 seconds for the first publish after a quiet period online.
- The dialog confirms it, for example "Published Studio_Components_OnlineHeaderWidget (Widget) to CustomConstellation 01-01-01".
- Validate config schema: Pega's check of the component's
Download DX source gives the same component as source code (index.tsx, config.json, a mock, Storybook stories, a
test and docs), for a @pega/custom-dx-components project or a code review. It passes that project's lint too, so
npm run publish there works without changes.
How to use them in Pega
Take a copy of a view before changing it, or work in a branch.
Form template:
- In App Studio, open the step's view (for example the flow action view of "Enter Recipe Details") and choose Edit.
- Pick your template in the template list.
- In the template settings, bind each designed field to its case property, and set data page settings for bound
lists, charts and timelines. The settings are grouped per field: one collapsible group headed by the field's
label (Property, Label, Helper text, Required…), and for a field with choices a second collapsed group
: choices (fixed choices and the optional list data page). Nothing is left out; it just reads per field.
Pega's own regions are drawn where the design has its regions. Content that Pega keeps in its general Fields region, such as list editors, is drawn at the first designed region it has no named match for.
Field: in a view, select a property of the matching type and choose your component under Display as.
Widget: add it to a page region, for example a landing page or the Home page:
- In App Studio, open the portal (for example Work Portal) → Portal navigation.
- Open a landing page or Home, then choose Region A → Add → Widgets.
- Pick the widget and save.
Bound widgets read their data page live, with parameters that may use
@P .Propertyvalues from the case.A static widget (one without bound data) shows its title in a Cosmos card header, like Pega's own widgets. The design is drawn below the title in a sandboxed frame:
- scripts are not allowed;
- same origin is allowed only so the frame can measure its height.
The frame fits its content. The widget's Maximum height setting caps it.
On the case page: case designer → UX → Full Page View (channel "Power User Portal" is the Work Portal's case page,
pyDetails): a tab's region (Add → Widgets) draws it in the page; in Utilities it shows as an icon in the utility rail and opens when clicked.
Rules in a published form (Properties → Interaction → Rules): the template reads the case values itself and shows, hides, requires (asterisk) and locks its fields as the rules say, also in App Studio's preview; a failed value check shows under the field. Pega's Submit waits for these checks: each checked field joins Pega's own form validation, so Submit is refused and Pega shows the message in its error banner until the value is fixed. These checks run in the browser, so anything that must always hold (for example data that also arrives through an API) still belongs in Pega itself as well, such as a validate rule on the flow action. A published field's own Required setting is not part of Pega's validation; use a required-when rule.
Your look on Pega's own screens: Themes → Kit → Use in Pega downloads the screen's look as a Pega theme (Designing). It changes the portal, case pages and the forms Pega draws, not only your published components.
After republishing: Pega keeps the component's address and version stamp (?v=). A browser that already loaded the
old version keeps using it, even though Pega's server already has the new one. To see the new version, use one of these:
- DevTools → Network → tick Disable cache, then reload;
- right-click reload → Empty Cache and Hard Reload;
- an incognito window.
Set up in Pega (Pega 26.1)
In the online studio Set up runs Pega's authoring tool through a small setup helper on your own computer (Pega's tool is Java and cannot run in the browser). Install and pair it once per session: see Getting started → The setup helper. The local studio needs no helper. The helper is a temporary workaround until Pega Infinity 27 makes this authoring native (expected) or the studio's hosting changes.
After publishing a form, step 3 of the Publish dialog can also make the App Studio changes for you. It stays folded
until you open it, and opens by itself right after a publish. Enter the case type
class and the step's view (for example UploadRecipePhotos), pick what to do and click Set up in Pega.
Work in a branch, then merge. Set up saves every change in an existing development branch of your application (for
example BP-1), never straight into the application's ruleset. That is how Pega recommends building any change, new
properties included: develop and check in a branch, then merge the branch into the application ruleset (App Studio →
Branches → Merge). Pega's own authoring tool enforces it: it refuses to save a rule without a branch. Rules that
already live in a branch can only change in that branch.
- Check the fields are in Pega: each designed field bound to a property is looked up on the case type (and the classes it inherits from). Set up never creates properties: a missing one is listed in the developer checklist (with its type, for example text, decimal, date or a dropdown with the field's choices), for a developer to add in App Studio (Data model) in the branch.
- Check the data pages are in Pega: a table, list, chart, KPI, timeline, to-do, board, calendar, accordion or selected items bound to a data page is looked up the same way. A missing one goes on the checklist (source, mapped columns, parameters) instead of being created.
- With a test for each (optional, under the data page option): a PegaUnit test per data page that exists; the test runs the data page and
expects at least one row; the studio runs the branch's tests right away and reports passed and failed. Pega keeps
tests in the application's test ruleset, so enter its name; without one the studio adds no tests and the step
says so. To make a test ruleset in Dev Studio: open the application rule, under Application rulesets add a new
last row (for example
MyAppTests:01-01), click its Open icon and Create and open, then on the ruleset's Category tab tick Use this ruleset to store test cases, save the ruleset and then the application. Tests for whole case flows (application tests) need Pega's business actions and test personas set up in the application first, so the studio does not write those yet. - Preview changes first: Set up lists what it would do without saving anything; tick the items you want and Apply ticked changes. Copy checklist copies what is left for a developer (missing properties and data pages).
- Field settings (label, helper text, required) are always copied from the design; conditions only with the option below.
- Rich text fields are placed as Pega's own RichText control.
- Use the template on the step's view: the view's template becomes your form, with its settings as App Studio would write them when you pick it (the view's own fields stay in the form's Fields region).
- Add field conditions: shown, required and read-only rules go onto the view's own fields as Pega conditions
(groups become brackets:
(A || B) && C; Pega's own expression engine evaluates them, checked on 26.1). The studio writes both places Pega reads: the@Econdition and the field's option set to expression; with only the first, Pega ignores the condition. Limit: a Pega field placed inside your published form evaluates its condition when the step opens, but does not re-check it while you type in the form's own fields. Pega's own fields on Pega's own forms are not affected, and the form's own fields always follow their rules as you type. Fields that only exist in your form keep applying their rules themselves. - Add server checks: the design's required fields and value checks become a Pega validate rule
(
StudioChecks<View>), attached to the step's flow action. Pega's server then refuses wrong values however they arrive, for example through the API, and shows your message. "Required when" conditions with groups are written with brackets and double-quoted values, as Pega's server expressions need.
How it works and what to expect:
- It uses Pega's Infinity Authoring tool (pegasystems/infinity-ai-plugins), which the local studio runs in the background and the online studio runs through the setup helper. It needs Pega Infinity 26.1+; the helper needs only Node 22+ and fetches Java 17+ itself when missing (the local studio needs Java 17+ and Node 22.14+). The first time, Pega asks you to sign in in your browser; the tool keeps the token, the studio never sees it.
- No AI is involved: the studio builds every change from your design, so the same design always makes the same change.
- Everything goes into a branch. Rules that already live in a branch (App Studio's own branch, for example
BP-1) can only change in that branch; new rules go into the branch you name, which must already be in the application: the studio never creates branches or rulesets (it stops before writing anything when the branch is missing and lists the ones the app has). The test ruleset is never created either; tests go only into a test ruleset you name that already exists. Saving into a branch writes to the ruleset<ruleset>_Branch_<branch>, which Pega creates on the first save if it is missing, so before writing anything the studio checks that every such ruleset already exists and stops (or skips the tests) when one does not. Your branch preference is put back afterwards. Review and merge in Pega as usual. - Each step reports what it changed, or why it could not. In the online studio the tool runs in the setup helper on your computer; without a paired helper the step says so and points to App Studio instead.
- If the view's regions are in a different order from the form's, the studio does not touch it and asks you to pick the template in App Studio.
- Data reference fields (single pickers and multi-select lists) are placed like other fields, copied from the case type's Edit view with their data page and display field. A field that is not in that Edit view is listed instead: add it in App Studio (Add → Fields) in the region named after it. Step by step: Data reference fields.
Explain the Pega application (Pega 26.1, local studio)
⌘K → Explain the Pega application reads the application you are connected to, without changing anything: its description, its case types, and for each case type its step views (and which already use a studio form), flows, fields and data pages. Copy as text gives the same overview as short sentences for a ticket or a chat. It uses the same Pega authoring tool as Set up in Pega.
Which package versions the publisher uses
Pega loads a published component inside its own page, so the component is built with Pega's recommended versions:
- Cosmos tagged for your Infinity patch;
- React 18;
- styled-components 5 and TypeScript 5.5 from Pega's starter project;
- for the lint before the build, ESLint and its plugins at the versions Pega's starter project names, with its own configuration files.
They are not the newest versions. A mismatch can make a component load and draw nothing: a React 19 build did exactly that on 26.1.
Good practice
- Naming: one organisation for your team (for example
Acme), a library per area (Forms,Widgets,Components), and a clear name (RecipeIntakeForm). Keys must be unique in the application; publishing the same key again replaces the component. - Rulesets: publish into a dedicated, unlocked development ruleset (or a branch), never into a locked or production ruleset. Move components to higher environments with your normal deployment (product rules or pipelines), not by publishing again.
- Bind before you publish: give every field its Pega property in Properties (Pega property). The checks warn about unbound fields; an unbound control is shown disabled in Pega with a setup message. Linking in App Studio also works for form templates, but the studio is the one place that works for every kind (see Fields without a Pega property).
- Prefer real data over samples: bind tables, lists, charts and KPIs to data pages (Data source) so they show live data in Pega. Sample rows are for design only.
- Keep views small: split long forms into steps or sections (the "Long form" check flags views with more than 15 fields).
- Test before you publish: Run in Pega draws your latest design on real cases without publishing. Publish when the screen is right.
- Accessibility: keep the contrast checks green (WCAG 2.1 AA). Gradients and colours are checked at their weaker end.
Every generated component also comes with a test that runs axe on it (
demo.test.tsx), as Pega's component guidance asks. - Style through the theme: keep Look in Pega → Follow the app's Pega theme and bring your look to Pega as the application's theme, so every screen, Pega's own included, matches and follows later theme changes.
- One source of truth: keep the design in a team space, so the next person republishes from the same design and its history, not from a copy.
- Rights: the operator behind Connect to Pega needs DX component publish rights. Use a developer operator, not an end user's.