React SDK

Start of documentation content

The Formally React SDK allows developers to make bespoke customisations such as,

  • creating forms in code
  • custom form submit handler to send data to your own servers
  • replacing default components, such as textboxes, with your components
  • custom validation logic
  • custom file upload handler to send file uploads to your own servers
  • custom autosuggest handler to integrate with your APIs / data.

All of these features can be used independently.

Install

The SDK is the same NPM formally package.

Licensing via the licence prop

You can trial the SDK locally (on localhost) without a licence but deploying to another domain will require a licence. Please contact support for a licence.

A licence is not required if only using the formBuilderId prop to load forms from Formally servers via the form builder. Use of other props will need an SDK licence.

The licence is a string that is provided through the licence prop e.g.

import { Formally } from 'formally';
import 'formally/build/styles.min.css';

export const MyForm = () => (
  <Formally licence="your-licence-id" formBuilderId="your-form-id" />
);