# Settings Record to reference a database connection

**URL:** <https://forum.inductiveautomation.com/t/settings-record-to-reference-a-database-connection/110844>\
**Category:** Module Development\
**Tags:** ignition83\
**Created:** [September 22, 2025, 5:54pm UTC](https://forum.inductiveautomation.com/t/settings-record-to-reference-a-database-connection/110844 "2025-09-22T17:54:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [September 22, 2025, 5:54pm UTC](https://forum.inductiveautomation.com/t/settings-record-to-reference-a-database-connection/110844/1 "2025-09-22T17:54:15Z")

</div>

For a module I try in a record to reference a database connection.  
What is the @FormField annotation to use ?  
FormFieldType.REFERENCE or FormFieldType.SELECT or other ?

```java
public record MySettingsResource(
        @FormCategory("MyCategory")
        @FormField(FormFieldType.REFERENCE)
        @Label("Db connection")
        @Required
        @DefaultValue(???)
        @Description("DB connection to use")
        String dbConnection ???
)
{
...

```

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [September 22, 2025, 5:59pm UTC](https://forum.inductiveautomation.com/t/settings-record-to-reference-a-database-connection/110844/2 "2025-09-22T17:59:57Z")

</div>

`@FormField` + `@FormRerefenceType`.

Example from BACnet:

```python
@FormField(FormFieldType.REFERENCE)
@FormReferenceType("com.inductiveautomation.opcua.drivers.bacnet/BacnetIpLocalDeviceConfig")

```

where the reference type is the fully-qualified path to the type of reference (module id + resource type id). In your case `ignition/database-connection` I think?
