Socket
Book a DemoInstallSign in
Socket

@formcentric/client

Package Overview
Dependencies
Maintainers
3
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@formcentric/client

Formcentric-Client package for rendering Formcentric-Headless Forms

npmnpm
Version
0.4.2
Version published
Weekly downloads
207
-42.82%
Maintainers
3
Weekly downloads
 
Created
Source

Formcentric Standalone Client

Formcentric-Client package for rendering Formcentric-Headless Forms.

INSTALLATION

This Npm-Package contains all needed Files, for rendering Forms in the Browser.

  npm install @formcentric/client

USAGE & EXAMPLES

To implement a form on your Page, two things are needed:

  • A div with the data-attribute fc_embedid
  • Execution of the @formcentric/client Script

The Client-Script is needs to load the formapp.js, because of this the said file has to be served and reachable. The same requirement exists for the themes-directory.

EXAMPLE FORM-CONTAINER

<div
    data-fc-id="..."
    data-fc-form-definition="..."
    data-fc-formapp-url="./formapp.js"
    data-fc-theme="formcentric"
    data-fc-theme-dir="./themes"
></div>

EXAMPLE CLIENT SCRIPT-TAG

<script src="./formcentric.js" defer></script>

Everytime formcentric.js gets executed, every Form-Container (identified by data-fc-id) gets initialized as a form.

FAQs

Package last updated on 27 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts