Description

Last updated:

The Static integration of the Formcentric Client is envisaged for use with conventional website and CMS embedding projects.

The integration is based on formcentric.js, formapp.js, data-fc-* attributes on the form container and the global object window.formcentric.

The application consists of two main modules:

formcentric.js

This module forms the outer shell of the application and handles the basic setup.

It is responsible for the following:

  1. Initialisation of the Formcentric application on the embedding page
  2. Loading and applying design configurations
  3. General configuration of the application

formapp.js

This module constitutes the core of the application and controls the form logic.

It is responsible for the following:

  1. Dynamic form rendering
  2. Form state management
  3. Communication with the Formcentric headless server
  4. Handling user interactions

The Static integration is intended for conventional static pages and CMS environments. For module- and SDK-based integration projects, the separate SDK documentation should be used.

client.js is an ES module and loads widgets and languages on demand as separate modules. For a script integration with a single runtime file, formappUrl (or data-fc-formapp-url) points to the fully bundled classic formapp.js. Themes, external captcha SDKs, and custom language modules remain separate files.

If you are hosting and serving the files yourself, please refer to section Runtime & Delivery under Client (General), paying particular attention to the directory structure and the requirements for the final runtime URL.

Feedback