OBLYTECH Logo
OBLYTECH Logo

Declarative Action Buttons in Configurable Workspace UI

Declarative actions are the configuration records that add custom buttons to forms, fields, lists and related lists in a Configurable Workspace. Each button lives in your own application scope, so you extend the page without taking ownership of the UI Builder page beneath it. The sections below cover action types, record fields, run types, placement, visibility, conditions and modals.

Choosing an action type for each place a button can appear

Creation starts at All > Declarative Actions > Create new action, where you pick a type. Each type has a fixed home on the page.

Action type Where the button appears
Form action A button on a form, shown only when a form action layout places it
List action A button on a list, grouped under a split button when Group By is set
Related list action A button on a related list
Field decorator A decorator attached to a field of a supported type; up to three decorators can sit on one field at a time, and multi-line text fields are not supported
Attachment action An action button added to the configurable workspace, created from the same Create new action menu

Filling in the action record

The action label is required, and it becomes the default text on the button. The action name fills itself in from the label, in lowercase, with spaces replaced by underscores, so “Assign to me” becomes assign_to_me.

Active controls whether the action appears. Order sets the position of the action relative to other actions. Tooltip text appears on hover.

For list and related list actions, you can choose the Otto sparkle icon, identified as ai-sparkle-fill, and tick Animate for a hover motion. Button type sets the color variant. Form actions set their icon and color on the layout item instead. The AI Primary, AI Secondary and AI Tertiary variants are gradients that signal an AI-powered experience, so they suit AI-assisted actions.

Application is the scope the action belongs to. Table decides which table shows the button, and setting it to Global makes the button appear regardless of table. A blank View shows the button in any view. For a form action, Enable for all Configurable Experiences makes it appear in any applicable form across experiences. Leave it off and the button is limited to the experiences you specify. List and related list actions use Experience Restricted for the same purpose.

Deciding how the button runs

The Implemented as field decides what happens when a user presses the button.

  • Server Script runs JavaScript on the server or against the database, such as creating, deleting or reassigning a record.
  • Client Script runs JavaScript in the browser and joins the functions the form or list already has.
  • UXF Client Action sends a page-level event inside UI Builder. The event reaches the button through a UX add-on event mapping, and the Specify client action field sets its payload.
  • UI interaction runs a reusable flow of UI elements and logic built in UI Builder. It is offered for form, list and related list actions and needs no add-on event mapping.

A reasonable rule of thumb is to pick a UI interaction when the same flow should serve several buttons, and a server script when the job is to change records.

Placing form buttons with a form action layout

A form action does not appear on a workspace form until a layout places it. The layout is a UX Form Actions Layout record, which combines layout items and groups in one table-based setup. Create the declarative action and add its button to a workspace first, then attach the layout:

  1. Open the workspace experience in UI Builder.
  2. Select or create a page that contains the Form component, such as a record page.
  3. In the Data and scripts tree, select the Form Controller.
  4. On the Configure tab, expand the Advanced section.
  5. Set Action layout to the UX Form Actions Layout record, then save.

Editing a layout item

Open the action under All > Declarative Actions > Form Actions, then use the Layout Items related list.

Field What it controls
Name and Label The internal identifier and the text shown on the button
Item Type Action for a single button, or Group for a set of actions
Action or Group The action or group the item represents, depending on Item Type
Overflow Moves the button into the overflow menu, out of the main action bar
Icon and Color The icon and color variant, using the same Otto and AI gradient options
Order and Active The position among other actions, and whether the item is live

Upgrading an older layout group

Older layout groups stored their member actions in a single glide list field. Changing the order or label of an action then changed it in every layout where it appeared.

Upgrading moves the group to a many-to-many related list, so each group can carry its own order, label and icon for an action without altering the base action. Navigate to All > Now Experience Framework > Declarative Actions > UX Form Action Layout Groups, open the group, and select Upgrade Group. The upgrade cannot be undone. Order and labels already set on the group carry across, and changes are then made in the Form actions in group related list.

Hiding a global action from one page

Global actions apply across tables, pages and experiences, so visibility controls narrow where they show. To hide a global form action from one page layout, navigate to All > Now Experience Framework > Declarative Actions > Form Actions, open the action, and select the Form Action Layouts tab. Open the layout configured on the workspace page, open the UX Form Action Layout Items tab, set Active to false on the action, and select Update.

Layouts created in the Washington DC release or later are unified automatically. Form actions created in earlier releases need a manual association with the layout first.

Conditions that decide whether a list button shows

Dynamic evaluation lets a list button appear when the selected records meet a test. Navigate to All > Now Experience Framework > Declarative Actions, choose List Actions or Related List Actions, and open the action. Tick Record Selection Required and Experience Restricted. Under Conditions, tick Enable Dynamic Evaluation, add a Dynamic Script Condition or Dynamic Record Conditions, and select Update.

A selection that fails the conditions hides the button. Record conditions test table columns without code, which suits simple rules such as a state value. Select All selects all records, and each one must be checked, which can make the page slow or unresponsive, so targeted selections are the safer choice.

Roles and access checks

Set the role and access settings on the action so they match who should see the button.

Opening a custom modal from a form button

A form action can open a custom modal that shows information or interactive elements without leaving the page. The setup has five parts: create the declarative action button, configure a page variant in UI Builder, configure that variant as a modal, create a UX add-on event mapping that connects the button to the modal, and define the payload that opens it. Background loading for large related list selections and modal resizing sit in the same topic family.

Running a UI interaction from a button

A UI interaction is the reusable alternative to a UXF client action, and it removes the add-on event mapping from the UI Builder page. Create the UI interaction in UI Builder first. The ui_interaction_admin role has full permissions, including delete, and the admin and ui_builder_admin roles inherit it. The ui_interaction_developer role can create, read and update, but it cannot delete UI interactions or their inputs.

On the action record, set Implemented as to UI interaction, then choose the interaction. A Configure inputs dialog opens with the defaults. If the flow defines no inputs, the dialog does not open. Each input takes a typed static value, or a dynamic value in double braces that draws on names from the Action Model Definition table, such as passing the current table. Save the inputs, then select Update.

Frequently asked questions

Can I add a button without changing the base UI Builder page?

Yes. The action is a record in your own application scope. For a form, the page step is attaching a UX Form Actions Layout to the Form Controller, which places the button without taking ownership of the page.

Why does a list button disappear when I select certain rows?

Dynamic evaluation checks the selected records against your conditions. A selection that fails the test hides the button. Confirm that Record Selection Required, Experience Restricted and Enable Dynamic Evaluation are all ticked, because the conditions depend on those settings.

What is the difference between a client script and a UI interaction?

A client script is browser JavaScript attached directly to one button. A UI interaction is a reusable unit built in UI Builder that can serve several buttons without an add-on event mapping on the page.

What happens if I set a layout item to inactive?

The button stops appearing on any page that uses that layout. The other enabled actions in the layout stay in place.