---
title: entities.onlineFormStyle
description: Read online form style records with the onlineFormStyle repository, and change them with the online form style mutations. Same records as the REST OnlineFormStyles entity.
canonical: https://developers.coevera.com/reference/graphql/online-form-style/
section: graphql
verification: schema
generatedFrom: schema f155746 (2026-10-20)
publisher: Coevera
---

# entities.onlineFormStyle

Read online form style records with the onlineFormStyle repository, and change them with the online form style mutations. Same records as the REST OnlineFormStyles entity.

REST: [OnlineFormStyles](https://developers.coevera.com/reference/rest/online-form-styles.md).

## Queries

- `getById(entityId: ID!): OnlineFormStyleEntity` Returns the record with the given id, or null when there is none. Deleted records are returned as well.
- `getByIds(entityIds: [ID!]!): [OnlineFormStyleEntity!]!` Returns the records with the given ids; ids without a record are left out. Deleted records are returned as well.
- `getAll(limit: Int, offset: Int, filter: OnlineFormStyleFilterInput, orderBy: [OnlineFormStyleOrderByInput!], includeDeleted: Boolean): [OnlineFormStyleEntity!]!` Returns the records that match the filter, paged with limit and offset.
- `getByCriteria(filter: OnlineFormStyleFilterInput, orderBy: [OnlineFormStyleOrderByInput!], includeDeleted: Boolean, before: String, after: String, first: Int, last: Int): OnlineFormStyleEntityConnection` Returns the records that match the filter as a cursor-paginated connection.
- `getChangedFieldsSinceRevision(id: UUID!, revision: Int!): [UUID!]!` Returns the ids of the fields of a record that changed after the given revision. Returns an empty list for entities without change tracking.

## Mutations

- `createOnlineFormStyle(input: CreateOnlineFormStyleInput!, validationLevel: [ValidationLevel!]): CreateOnlineFormStylePayload` Create one record.
- `updateOnlineFormStyle(input: UpdateOnlineFormStyleInput!, validationLevel: [ValidationLevel!], sessionIdToUpdate: String): UpdateOnlineFormStylePayload` Update fields.
- `bulkUpdateOnlineFormStyle(input: [CreateOrUpdateOnlineFormStyleInput!]!, deleteInput: [DeleteOnlineFormStyleInput!], validationLevel: [ValidationLevel!], rollbackMethod: RollbackMethod, match: MatchingInput): BulkUpdateOnlineFormStylePayload` Create or update many; per-item results.
- `deleteOnlineFormStyle(input: DeleteOnlineFormStyleInput!): DeleteOnlineFormStylePayload` Soft-delete.

## Types

### OnlineFormStyleEntity (object)

Visual style (colors, fonts, layout) that can be applied to online forms.

- `isDeleteProtected: Boolean!` True when the record is protected against deletion because it must always exist in the space. Deleting a record that is not protected can still fail on other checks. Read-only.
- `id: ID!` Unique identifier of entity.
- `isDeleted: Boolean` Specifies if the entity is considered deleted.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `name: String!` Name of the entity and its default text representation.
- `settings: OnlineFormStyleSettings` JSON definition of the style applied to the form (colors, fonts, layout). When null, the default style is used.
- `useLang: Boolean` When true, the style name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: Int` Revision when entity was lastly changed.
- `instancePermissions: [EntityPermsEnum!]! (1 args)` Permissions the current user has on this record, out of the requested ones.

### OnlineFormStyleEntityConnection (object)

Paginated list of OnlineFormStyle records.

- `pageInfo: PageInfo!` Pagination data for this connection.
- `edges: [OnlineFormStyleEntityEdge]!` Contains the nodes in this connection.
- `totalCount: Int` Total number of items in the connection.

### OnlineFormStyleEntityEdge (object)

A Relay edge containing a `OnlineFormStyleEntity` and its cursor.

- `node: OnlineFormStyleEntity` The item at the end of the edge
- `cursor: String!` A cursor for use in pagination

### OnlineFormStyleFilterInput (input)

Filter conditions for OnlineFormStyle records. Conditions on different fields are combined with AND; use OR, AND and NOT for other combinations.

- `OR: [OnlineFormStyleFilterInput!]` Matches records that meet at least one of the listed filters.
- `AND: [OnlineFormStyleFilterInput!]` Matches records that meet all of the listed filters.
- `NOT: OnlineFormStyleFilterInput` Matches records that do not meet this filter.
- `globalSearchQuery: String` Search term matched against the fields that the global search covers for this entity.
- `id: EntityFilterStringField` Unique identifier of entity.
- `isDeleted: Boolean` Specifies if the entity is considered deleted.
- `modified: EntityFilterDateTimeField` Last modification time.
- `created: EntityFilterDateTimeField` Creation time.
- `name: EntityFilterStringField` Name of the entity and its default text representation.
- `useLang: Boolean` When true, the style name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: EntityFilterNumberField` Revision when entity was lastly changed.

### OnlineFormStyleOrderByInput (input)

Sorting of OnlineFormStyle records. Set exactly one field in each item; list several items to sort by more fields, in order of priority.

- `id: OrderByEnum` Unique identifier of entity.
- `isDeleted: OrderByEnum` Specifies if the entity is considered deleted.
- `modified: OrderByEnum` Last modification time.
- `created: OrderByEnum` Creation time.
- `name: OrderByEnum` Name of the entity and its default text representation.
- `useLang: OrderByEnum` When true, the style name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: OrderByEnum` Revision when entity was lastly changed.

### CreateOnlineFormStyleInput (input)

Field values of a new OnlineFormStyle record.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `name: String!` Name of the entity and its default text representation.
- `settings: JSONString` JSON definition of the style applied to the form (colors, fonts, layout). When null, the default style is used.
- `useLang: Boolean` When true, the style name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: Int` Revision when entity was lastly changed.

### CreateOrUpdateOnlineFormStyleInput (input)

Field values of an OnlineFormStyle record to create, or to update when its id is set.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID` Unique identifier of entity.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `name: String` Name of the entity and its default text representation.
- `settings: JSONString` JSON definition of the style applied to the form (colors, fonts, layout). When null, the default style is used.
- `useLang: Boolean` When true, the style name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: Int` Revision when entity was lastly changed.

### DeleteOnlineFormStyleInput (input)

Id of the OnlineFormStyle record to delete.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID!` Unique identifier of entity.

### UpdateOnlineFormStyleInput (input)

Id of an OnlineFormStyle record and the field values to change.

- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).
- `id: ID!` Unique identifier of entity.
- `modified: DateTime` Last modification time.
- `created: DateTime` Creation time.
- `name: String` Name of the entity and its default text representation.
- `settings: JSONString` JSON definition of the style applied to the form (colors, fonts, layout). When null, the default style is used.
- `useLang: Boolean` When true, the style name is treated as a translation key and localized in the UI; otherwise the literal name is shown.
- `revision: Int` Revision when entity was lastly changed.

### BulkUpdateOnlineFormStylePayload (object)

Result of the bulkUpdateOnlineFormStyle mutation.

- `result: BulkUpdateResults!` Ids of the created, updated and deleted records, and the items that failed.

### CreateOnlineFormStylePayload (object)

Result of the createOnlineFormStyle mutation.

- `onlineFormStyle: OnlineFormStyleEntity` The created record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

### DeleteOnlineFormStylePayload (object)

Result of the deleteOnlineFormStyle mutation.

- `onlineFormStyle: OnlineFormStyleEntity` The deleted record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

### UpdateOnlineFormStylePayload (object)

Result of the updateOnlineFormStyle mutation.

- `onlineFormStyle: OnlineFormStyleEntity` The updated record.
- `clientMutationId: String` Optional client-supplied identifier passed on a mutation input and echoed back unchanged on its payload, so a client can correlate the response with its request (Relay convention).

### OnlineFormStyleSettings (object)

Visual style of online forms: colors, spacing, borders and logo.

- `backgroundColor: String` Background color of the page behind the form, as a CSS color.
- `buttonAreaPaddingVertical: String` Vertical padding of the area with the form buttons, as a CSS length.
- `buttonAreaPaddingHorizontal: String` Horizontal padding of the area with the form buttons, as a CSS length.
- `buttonColor: String` Background color of the form buttons, as a CSS color.
- `buttonFontColor: String` Text color of the form buttons, as a CSS color.
- `buttonRadius: String` Corner radius of the form buttons, as a CSS length.
- `columnsHorizontalPadding: String` Horizontal padding of the layout columns, as a CSS length.
- `formBackgroundColor: String` Background color of the form itself, as a CSS color.
- `formHorizontalPadding: String` Horizontal padding of the form, as a CSS length.
- `formVerticalPadding: String` Vertical padding of the form, as a CSS length.
- `headerBottomMargin: String` Space below the form header, as a CSS length.
- `headerDescriptionBottomMargin: String` Space below the description in the form header, as a CSS length.
- `headerHorizontalPadding: String` Horizontal padding of the form header, as a CSS length.
- `headerImageVerticalPadding: String` Vertical padding around the header image, as a CSS length.
- `headerRibbonVisible: Boolean!` When true, the header ribbon of the form is shown.
- `headerTitleTopPadding: String` Space above the form title in the header, as a CSS length.
- `inputBackgroundColor: String` Background color of input fields, as a CSS color.
- `inputBorderColor: String` Border color of input fields, as a CSS color.
- `inputBorderRadius: String` Corner radius of input fields, as a CSS length.
- `inputBorderWidth: String` Border width of input fields, as a CSS length.
- `inputFocusBackgroundColor: String` Background color of the input field that has focus, as a CSS color.
- `inputFocusBorderColor: String` Border color of the input field that has focus, as a CSS color.
- `inputFontColor: String` Text color of input fields, as a CSS color.
- `inputHoverBackgroundColor: String` Background color of an input field under the pointer, as a CSS color.
- `inputHoverBorderColor: String` Border color of an input field under the pointer, as a CSS color.
- `primaryColor: String!` Main accent color of the form, as a CSS color.
- `questionDescriptionBottomMargin: String` Space below the description of a question, as a CSS length.
- `questionTitleBottomMargin: String` Space below the title of a question, as a CSS length.
- `questionVerticalMargin: String` Vertical margin around each question, as a CSS length.
- `questionVerticalPadding: String` Vertical padding inside each question, as a CSS length.
- `sectionBackgroundColor: String` Background color of section headers, as a CSS color.
- `sectionFontColor: String` Text color of section headers, as a CSS color.
- `sectionHeaderHorizontalPadding: String` Horizontal padding of section headers, as a CSS length.
- `sectionHeaderVerticalPadding: String` Vertical padding of section headers, as a CSS length.
- `sectionPadding: String` Padding of form sections, as a CSS length.
- `showFooterLogo: Boolean!` When true, the logo is shown in the footer of the form.
- `titleBottomMargin: String` Space below the form title, as a CSS length.

Types several repositories share, such as `PageInfo` and the filter fields, are in the [types index](https://developers.coevera.com/reference/graphql/types.md). The [SDL](https://developers.coevera.com/graphql/schema.graphql) has the whole schema in one file.

## Example

```graphql
query FirstOnlineFormStyles {
  entities {
    onlineFormStyle {
      getByCriteria(first: 3, orderBy: [{ modified: Desc }]) {
        totalCount
        edges { node { id name modified } }
      }
    }
  }
}
```

```bash
curl 'https://{region}.api.coevera.com/api/v100/app/space/{space_id}/graphql/public' \
  --user "$COEVERA_API_KEY:$COEVERA_API_SECRET" \
  --header 'Content-Type: application/json' \
  --data '{"query":"query FirstOnlineFormStyles { entities { onlineFormStyle { getByCriteria(first: 3, orderBy: [{ modified: Desc }]) { totalCount edges { node { id name modified } } } } } }"}'
```
