---
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


---

# Override component data type

# Override component data type {#ariaid-title1}

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

Use the `sn-atf-data-type` and
`sn-atf-data-type-params` attributes to override the type of field
displayed in a Set Component Value test step.

## Antes de Iniciar

Role required: admin

## Por Que e Quando Desempenhar Esta Tarefa

Settable components have a data type that determines what values a Custom UI test step can set. For example, a page component intended to display a reference to a particular record can have a reference data type to only display Sys ID values.

## Procedimento

1. Open the custom UI page you would like to test.
2. Add the `sn-atf-data-type` attribute to the settable component and set the value to the field type you would like displayed in the Set Component Value test step.  
   This attribute contains a string of the testable data type. The available values include those listed in the following table.  
   {#override-component-data-type__table_ipy_13v_bgb__entry__2}

   | Attribute value | Description |
   |-|-|
   | glide_date | Contains a string specifying a particular day. |
   | glide_date_time | Contains a string specifying a particular day and time of day. |
   | reference | Contains a Sys ID to a related record. This data type requires specifying additional information in the `sn-atf-data-type-params` attribute. |
   [ ]

   {#override-component-data-type__table_ipy_13v_bgb}
3. Add the `sn-atf-data-type-params` attribute to provide additional information when the value of `sn-atf-data-type` is `reference`.  
   This attribute contains a string of JSON formatted key-value pairs. Available key-value pairs include those listed in the following table.  
   {#override-component-data-type__table_jqv_frz_1gb__entry__2}

   | Key | Value |
   |-|-|
   | reference | Name of the table that contains the records you want the reference field to display. For example, add `"reference":"incident"` to display records from the Incident table. |
   | reference_qual | Filter to apply to the query. For example, add `"reference_qual":"active=true"` to display only active Incident records. See [Reference qualifiers](https://www.servicenow.com/docs/access?context=c_ReferenceQualifiers&version=australia&pubname=australia-platform-administration&ft:locale=en-US) |
   [ ]

   {#override-component-data-type__table_jqv_frz_1gb}

## Exemplo

    <input id="someTextField" value="someSysId" sn-atf-data-type="reference" sn-atf-data-type-params='{"reference":"incident","reference_qual":"active=true"}'/>


