xurei / react-jotform-embed

A rewrite for React of the embedded iframe provided by JotForm https://www.jotform.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-jotform-embed

⚠ This project is no more maintained. Check (https://github.com/sbayd/jotform-react) for a more up-to-date alternative. ⚠

A rewrite for React of the embedded iframe provided by JotForm https://www.jotform.com/

This handles the resize mechanism provided by JotForm.

npm GitHub issues Sponsor

Install

npm install react-jotform-embed

Usage

import JotformEmbed from 'react-jotform-embed';

<JotformEmbed src="https://form.jotformeu.com/123456789" />

Props

  • src : The url of your jotform, as given in their publish section.
  • scrolling : A boolean to allow or disallow scrolling. Scrolling is turned off by default

Notes

To pre-populate forms in the field, add them as url params to your form. For example:

let name = "John";
<JotformEmbed src="https://form.jotformeu.com/123456789?name=John" />

Support Open-Source

Support my work on https://github.com/sponsors/xurei

About

A rewrite for React of the embedded iframe provided by JotForm https://www.jotform.com/

License:MIT License


Languages

Language:JavaScript 100.0%