# leadin/11.3.75/scripts/shared/Form/FormSelector.tsx

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

- Page: https://pluginprobe.com/plugins/leadin/11.3.75/code/scripts/shared/Form/FormSelector.tsx
- Raw: https://pluginprobe.com/plugins/leadin/11.3.75/raw/scripts/shared/Form/FormSelector.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/shared/Form/FormSelector.tsx#L10-L20`.

```tsx
import React from 'react';
import HubspotWrapper from '../Common/HubspotWrapper';
import { pluginPath } from '../../constants/leadinConfig';
import AsyncSelect from '../Common/AsyncSelect';
import { __ } from '@wordpress/i18n';

interface IFormSelectorProps {
  loadOptions: Function;
  onChange: Function;
  value: any;
}

export default function FormSelector({
  loadOptions,
  onChange,
  value,
}: IFormSelectorProps) {
  return (
    <HubspotWrapper pluginPath={pluginPath}>
      <p data-test-id="leadin-form-select">
        <b>
          {__(
            'Select an existing form or create a new one from a template',
            'leadin'
          )}
        </b>
      </p>
      <AsyncSelect
        placeholder={__('Search for a form', 'leadin')}
        value={value}
        loadOptions={loadOptions}
        onChange={onChange}
      />
    </HubspotWrapper>
  );
}

```
