---
sourceDocument: Australia Build or modify applications
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/pt-BR/application-development

 Release :

    - australia

ft:locale :

    - pt-BR

ft:publication_title :

    - Australia Build or modify applications

ft:clusterId :

    - cadev

bundleId :

    - cadev

workflow :

    - Development, Data, and Analytics


---

# Form API - ServiceNow Fluent

# Form API - ServiceNow Fluent {#ariaid-title1}

* Versão de lançamento: Australia
* 
* Atualizado 12 de mar. de 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 3 min. de leitura

The Form API defines forms \[sys_ui_form\] that display information for records in the classic environment.
For general information about forms, see [ServiceNow AI Platform® form administration](https://www.servicenow.com/docs/access?context=form-administration-landing-page&version=australia&pubname=australia-platform-administration&ft:locale=en-US).
**Conceitos relacionados**   

* [ServiceNow Fluent](https://servicenow-prod.fluidtopics.net/pP6OxbNArnr2tlBRkmrTfw "Define application metadata in source code using the ServiceNow Fluent domain-specific programming language.")

## Form object {#ariaid-title2}

Configure a form \[sys_ui_form\] to display information for records in a table.
{#fluent-form-object__table_qyv_1pj_4fc__entry__3}

| Name | Type | Description |
|-|-|-|
| table | String | Required. The name of the table to which the form applies. |
| view | Reference or String | Required. The variable identifier or name of the UI view \[sys_ui_view\] which applies, or the default view. To define a UI view, use the [Record API - ServiceNow Fluent](https://servicenow-prod.fluidtopics.net/ZgSD9CwRLbWqLhdTkFJpZA#record-api-now-ts "The Record API defines records in any table. Use the Record API to define application metadata that doesn't have a dedicated ServiceNow Fluent API."). To use the default view (`default_view`), you must import it: import { default_view } from '@servicenow/sdk/core' |
| sections | Array | Required. A list of form sections \[sys_ui_section\] that define how fields are grouped and displayed in the form. For more information, see [sections array](https://servicenow-prod.fluidtopics.net/ABI_maFku5vrtG71KtiKkw#fluent-form-sections-array "Configure a section in a form [sys_ui_section] that defines how fields are grouped and displayed in the form."). |
| user | Reference or String | The variable identifier or name of the user \[sys_user\] who created the form. To define a user, see [Record API - ServiceNow Fluent](https://servicenow-prod.fluidtopics.net/ZgSD9CwRLbWqLhdTkFJpZA#record-api-now-ts "The Record API defines records in any table. Use the Record API to define application metadata that doesn't have a dedicated ServiceNow Fluent API."). |
| roles | Array | A list of variable identifiers of Role objects or names of roles that can access the form. For more information, see [Role API - ServiceNow Fluent](https://servicenow-prod.fluidtopics.net/m41jSxLL4sPO3X7b_ek1BQ#role-api-now-ts "The Role API defines roles [sys_user_role] that grant specific permissions to users of an application."). |
| $meta | Object | Metadata for the application metadata. With the installMethod property, you can map the application metadata to an output directory that loads only in specific circumstances. $meta: { installMethod: 'String' } Valid values for installMethod: * demo: Outputs the application metadata to the metadata/unload.demo directory to be installed with the application when the Load demo data option is selected. * first install: Outputs the application metadata to the metadata/unload directory to be installed only the first time an application is installed on an instance. {#fluent-form-object__ul_n3q_y3s_42c} |
| $override | Object | Fields and their values provided to configure fields that aren't included in a ServiceNow Fluent API or to override an existing field. Aviso: Type safety isn't enforced for fields configured with the $override property. $override: { field: value, ... } |
[Tabela 1. Properties]

{#fluent-form-object__table_qyv_1pj_4fc}  

    import { Form } from '@servicenow/sdk/core'

    Form({
        table: 'sn_formredesign_rd',
        view: advancedView,
        sections: [
          {
            caption: '',              
            fields: [
              ['name', 'date' ],          
              ['priority', 'state'],
            ],
          },
          {
            caption: 'Notes',           
            fields: ['comments', 'work_notes'],
          },    
        ],
    })

The UI view definition referenced is defined using the Record object:

    import { Record } from '@servicenow/sdk/core'

    export const advancedView = Record({
        $id: Now.ID['adv-view'],
        table: 'sys_ui_view',
        data: {
            name: 'advanced_view',
            title: 'Advanced View',
        },
    })

## sections array {#ariaid-title3}

Configure a section in a form \[sys_ui_section\] that defines how fields are grouped and displayed in the form.
The sections array is a property within the Form object. Users can expand or collapse form sections to show or hide the fields they need. If a user has tabs enabled, each form section appears
on a separate tab.
{#fluent-form-sections-array__table_qyv_1pj_4fc__entry__3}

| Name | Type | Description |
|-|-|-|
| caption | String | Required. A title for the section. |
| fields | Array | Required. A list of fields to include in the section \[sys_ui_element\]. For more information, see [fields array](https://servicenow-prod.fluidtopics.net/ABI_maFku5vrtG71KtiKkw#fluent-form-fields-array "Specify the fields to include in a form section [sys_ui_element]."). |
| $id | String or Number | A unique ID for the metadata object. When you build the application, this ID is hashed into a unique sys_id. For more information, see [ServiceNow Fluent language constructs](https://servicenow-prod.fluidtopics.net/b1y7cW0gok5uzbNJ5JcSTw "ServiceNow Fluent language constructs provide additional functionality for development in source code with ServiceNow Fluent APIs."). Format: `Now.ID['String' or Number]` |
| header | Boolean | Flag that indicates whether to display a header. Valid values: * true: The header appears on the form. * false: The header is hidden. {#fluent-form-sections-array__ul_w2d_nvm_rfc} Default: false |
[Tabela 2. Properties]

{#fluent-form-sections-array__table_qyv_1pj_4fc}  

    sections: [
      {
        caption: '',              
        fields: [
          ['name', 'date' ],          
          ['priority', 'state'],
        ],
      },
      {
        caption: 'Notes',           
        fields: ['comments', 'work_notes'],
      },
    ],

## fields array {#ariaid-title4}

Specify the fields to include in a form section \[sys_ui_element\].
The fields array is a property within the Form object and supports up to two fields in each row and types that provide layout control.
{#fluent-form-fields-array__table_qyv_1pj_4fc__entry__3}

| Name | Type | Description |
|-|-|-|
| element | String | Required. The name of a field. |
| position | Number | The position of the field in the section in relation to other fields. |
| type | String | A layout type for the field. Valid values: * .begin_split * .space * .split * .end_split * element * annotation * split * list * end_split * chart * formatter * component {#fluent-form-fields-array__ul_e3s_wbk_qfc} |
| formatter | String | A formatter \[sys_ui_formatter\] for the field. A formatter is a form element used to display information that is not a field in the record. For more information about formatters, see [Using formatters](https://www.servicenow.com/docs/access?context=c_Formatters&version=australia&pubname=australia-platform-administration&ft:locale=en-US). |
[Tabela 3. Properties]

{#fluent-form-fields-array__table_qyv_1pj_4fc}  
Fields can be provided as objects or arrays with the following syntax.

    fields: [
      {                        
        element: 'date', // Single field as an object with formatting
        position: 1, 
        type: '.split',
        formatter: 'Access Control Rules Explanation'
      },
      ['.space', {element: 'name', position: 3}], // Single field as an object preceded by an empty space
      ['sys_updated_on', 'sys_updated_by'], // Group fields horizontally in the same row
    ]


