# Set Connection Field via JS

> The Set Connection Field via JS plugin enhances Tadabase forms by enabling dynamic value setting for connection fields using JavaScript. This plugin…

Source: https://tadabase.com/docs/plugins/set-connection-field-via-js  
Status: Not yet re-checked. Moved from our previous help site and not yet re-checked against the current product. Last edited Sep 20, 2024.

![Screenshot for “Set Connection Field via JS”](https://d10w0xb1xxwn2r.cloudfront.net/2ejlZ5BNo9/1724132108-Set-Connection-Field-via-JS.gif)

### Overview

The Set Connection Field via JS plugin enhances Tadabase forms by enabling dynamic value setting for connection fields using JavaScript. This plugin allows you to control and manipulate field values based on conditions or user interactions, offering flexibility for creating intuitive and responsive user experiences."

### Use Cases

- This plugin is ideal for applications where form fields need to be dynamically updated based on user input, such as in conditional form sections, dynamic relationship selections, or any scenario where the value of connection fields should change in real-time based on other form interactions.

### Installing the plugin

**Prerequisites:**

1. The page must have a form component
2. The form must have an connections field
3. Javascript must be enabled (applicable if your're on trial account)

**Step-by-Step Installation:**

1. Navigate to the page with this form, this can be a parent or child page.
2. Click on the Plugins
3. Find the Set Connection Field via JS plugin
4. Select the form
5. Select the connections field

### Removing the Plugin

To remove the plugin, find the Javascript code that is surrounted with a comment for the plugin name and delete the code. Do the same for the CSS as well.
