# leadin/11.1.13/scripts/gutenberg/FormBlock/FormBlockSave.tsx

HubSpot All-In-One Marketing – Forms, Popups, Live Chat, version 11.1.13. 17 lines.

- Page: https://pluginprobe.com/plugins/leadin/11.1.13/code/scripts/gutenberg/FormBlock/FormBlockSave.tsx
- Raw: https://pluginprobe.com/plugins/leadin/11.1.13/raw/scripts/gutenberg/FormBlock/FormBlockSave.tsx
- Modified: 2024-05-23T13:10:40+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.1.13/code/scripts/gutenberg/FormBlock/FormBlockSave.tsx#L10-L20`.

```tsx
import React from 'react';
import { RawHTML } from '@wordpress/element';
import { IFormBlockAttributes } from './registerFormBlock';

export default function FormSaveBlock({ attributes }: IFormBlockAttributes) {
  const { portalId, formId } = attributes;

  if (portalId && formId) {
    return (
      <RawHTML className="wp-block-leadin-hubspot-form-block">
        {`[hubspot portal="${portalId}" id="${formId}" type="form"]`}
      </RawHTML>
    );
  }
  return null;
}

```
