Build the Connection Dialog with Connection Dialog v1

The connection dialog prompts the user to enter connection and authentication information. That information is passed into the Connector Builder script to build the connection string. The dialog appears when creating a new connection or editing an existing connection and is used by both Tableau Desktop and Tableau Server.

The connection dialog is mainly defined in the Tableau Custom Dialog (.tcd) file.

Here’s an example of a connection dialog:

Set connector name and vendor information

The connector is displayed as “[Display Name] by [Company Name]” in the connection dialog and connection list.

“For support, contact [Company Name]” is displayed at the bottom left of the connector. Clicking this link sends the user to the support link defined in the manifest. This link also displays in error messages. The support link must use HTTPS to be packaged into a TACO file.

These elements are defined in the manifest.xml file:

<connector-plugin class='postgres_odbc' superclass='odbc' plugin-version='0.0.0' name='PostgreSQL ODBC' version='20.1'>
      <company name="Company Name"/>
      <support-link url = ""/>

Define custom vendor attributes

Vendors can add customized attributes (fields) to their connector plugin by using the vendor attributes.

These fields have a custom label and can be used for attributes in the connection strings that are not available in the attribute list. You can currently add three custom fields in your connector plugin.

To add a custom vendor attribute for an ODBC-based connector, you must modify these files:

To add a custom vendor attribute for an JDBC-based connector, you must modify these files:

See examples below.


        <attr> vendor1 </attr>
        <attr> vendor2 </attr>
        <attr> vendor3 </attr>



 <connector-plugin class='postgres_jdbc' superclass='jdbc' plugin-version='0.0.0' name='PostgreSQL JDBC' version='18.1'>
            <vendor1-prompt value="Log Level: "/>
            <vendor2-prompt value="Protocol Version: "/>
            <vendor3-prompt value="Char Set: "/>


connectionBuilder.js (ODBC only)

(function dsbuilder(attr)
    var params = {};

    params["SERVER"] = attr[connectionHelper.attributeServer];
    params["PORT"] = attr[connectionHelper.attributePort];
    params["DATABASE"] = attr[connectionHelper.attributeDatabase];
    params["UID"] = attr[connectionHelper.attributeUsername];
    params["PWD"] = attr[connectionHelper.attributePassword];
    params["loglevel"] = attr[connectionHelper.attributeVendor1];
    params["protocolVersion"] = attr[connectionHelper.attributeVendor2];
    params["charSet"] = attr[connectionHelper.attributeVendor3];

connectionProperties.js (JDBC only)

      props["password"] = attr[connectionHelper.attributePassword];
      props["logLevel"] = attr[connectionHelper.attributeVendor1];
      props["protocolVersion"] = attr[connectionHelper.attributeVendor2];
      props["charSet"] = attr[connectionHelper.attributeVendor3];

      if (attr[connectionHelper.attributeSSLMode] == "require")

See complete files here.

Define Tableau Custom Dialog file elements

The TCD file defines which UI elements display in the dialog.

Here’s an example of a TCD file:

<connection-dialog class='postgres_odbc'>
    <authentication-mode value='Basic' />
      <option name="UsernameAndPassword" default="true" />
    <db-name-prompt value="Database: " />
    <has-pre-connect-database value="true" />
    <port-prompt value="Port: " default="5432" />
    <show-ssl-checkbox value="true" />

The authentication-mode and authentication-options tags control how a user is prompted to enter data source credentials. For information on authentication modes, see Authentication modes.

The other tags control what prompts show up in the connection dialog. For example, this shows the Port prompt with the label of Port and a default value of 5432:

<port-prompt value="Port: " default="5432" />

Localize your connector

For information on localizing your connection dialogs, see Localize Your Connector.