Skip to content
MyAppBuilder
StableDataVersion 1

Comments

Overview

A discussion thread on a record with a box to post new comments. Each comment is a record in a comments entity, so it stays with the job, ticket or customer it belongs to.

A comment thread with a box to add new comments.

When to use

  • Internal notes on a job between office and field staff
  • Customer–support conversation on a ticket
  • Review comments on a quote
  • Questions on a project page

When not to use

  • Real-time chat feel with bubbles: use Chat
  • One-off notes without replies: a Text Area on a Form

Quick start

  1. Create an entity (e.g. Comments) with a Long text field for the body and a Relation or text field linking to the parent (e.g. ticket_id)
  2. Add Comments on the ticket page and bind Data to Comments where ticket_id equals Page parameter id
  3. Set Comment text field; Author field can be left empty to use the record's creator
  4. Preview, post a comment and check it appears under the right ticket

Properties

Titletext (bindable)

Heading shown above the thread. Leave empty for none. Bindable, so it can include dynamic text such as the customer's name.

Example: Open jobs

Empty-state texttext

Message shown when the query returns no records (after filters, search and permissions). Tell people what to do next: “No jobs yet — add one with the button above”.

Default: No comments yet. Be the first to comment.

Comment text fieldfield (long_text, text)

Long text (or text) field that stores each comment. Defaults to the first Long text field.

Author fieldfield

Who wrote it. A text field is filled with the signed-in user's name or email when posting; Created by shows the account automatically. Defaults to a field named author/sender/user or Created by.

Input placeholdertext

Hint in the composer box.

Default: Write a comment…

Data binding

An entity query. The 50 newest comments load, shown oldest to newest, with “Load earlier messages”. When posting, the component copies the query's “equals” filters into the new record (ticket_id = Page parameter id, user = Current user…), so new comments stay in the thread without extra setup. Ctrl/Cmd+Enter posts.

Properties that can use dynamic data: Title, data.

Events

On submit
Declared for this component but not triggered today: posting saves the comment and refreshes the thread without running actions. To react to new comments, use a workflow on the comments entity.

Actions

Open the Actions tab in the inspector, pick an event and add actions such as Go to page, Create record or Show message. Actions run in order; data-changing actions run on the server with the signed-in user's permissions.

Responsive behavior

Thread scrolls inside a fixed height; the composer stays visible.

Permissions

Posting requires create rights on the comments entity for the role; reading follows the entity's record rules (a customer with a “ticket belongs to me” rule sees only their threads). Posting is disabled on read-only sources and on the editor canvas.

Accessibility

  • The thread is a live log region so new comments are announced
  • The composer is labelled with its placeholder

Examples

Ticket conversation

Example
Page: /tickets/:id
Source: Ticket Comments where ticket_id equals Page parameter id
Comment text field: body · Author field: (empty → Created by)
Permissions: Customer can read/create Ticket Comments where ticket.customer_id = Current user

Common patterns

  • A workflow on record creation that emails the ticket owner
  • An Activity Feed of the same entity on the dashboard

Limitations

  • No replies/threads, editing or deleting from the component
  • No attachments; add a separate Form with File Upload if needed

Troubleshooting

“Choose a message field in Properties”

Fix: Set Comment text field to a text/long text field

Posted comments appear under every ticket

Why: The query has no equals filter on the parent id

Fix: Add filter ticket_id equals Page parameter id; it is copied into new comments

Related

Was this helpful?