# leadin/11.3.75/scripts/elementor/FormWidget/FormControlController.tsx

HubSpot All-In-One Marketing – Forms, Popups, Live Chat, version 11.3.75. 32 lines.

- Page: https://pluginprobe.com/plugins/leadin/11.3.75/code/scripts/elementor/FormWidget/FormControlController.tsx
- Raw: https://pluginprobe.com/plugins/leadin/11.3.75/raw/scripts/elementor/FormWidget/FormControlController.tsx
- Modified: 2026-09-16T15:19:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/leadin/11.3.75/code/scripts/elementor/FormWidget/FormControlController.tsx#L10-L20`.

```tsx
import React, { Fragment } from 'react';
import { connectionStatus } from '../../constants/leadinConfig';
import ConnectPluginBanner from '../Common/ConnectPluginBanner';
import ElementorFormSelect from './ElementorFormSelect';
import { IFormAttributes } from './registerFormWidget';

const ConnectionStatus = {
  Connected: 'Connected',
  NotConnected: 'NotConnected',
};

export default function FormControlController(
  attributes: IFormAttributes,
  setValue: Function
) {
  return () => {
    const render = () => {
      if (connectionStatus === ConnectionStatus.Connected) {
        return (
          <ElementorFormSelect
            formId={attributes.formId}
            setAttributes={setValue}
          />
        );
      } else {
        return <ConnectPluginBanner />;
      }
    };
    return <Fragment>{render()}</Fragment>;
  };
}

```
