Using JS

Using HTML

Fields

Authorized Sites

FormChimp JS

Form Chimp Js is a tiny JavaScript library that was made specifically for Form Chimp’s API.

It makes implementing your form in JavaScript simple.

You don’t have to use this library in order to use Form Chimp. You can implement your form how you see fit, using other libraries such as Axios-http. - Using jS

To get started, add the library to your project.

Using NPM:

  npm i formchimp

Once you’ve added From Chimp to your project via NPM, you can use it like so.

import Chimp from 'formchimp';

// Initialize a new instance.
let myForm = new Chimp(`https://api.formchimp.app/?form=${FORM_ID}`);

let data = {
	massage:"using formchimp successfully!"
}

// Submit the data
myForm.post(data)
.then((res)=>{

	// do something on successful submission
	console.log(res)

})
.catch((error)=>{

	// do something on error.
  console.error(error);

})

Using CDN:

<script src="<https://cdn.jsdelivr.net/npm/[email protected]/lib/build.js>"></script>

Once you’ve added From Chimp to your project via the CDN, you can use it like so.

**let myForm= new FormChimp.default(`https://api.formchimp.app/?form=${FORMID}`,)**

let data = {
	massage:"using formchimp successfully!"
}

myForm.post(data)
.then((res)=>{

	// do something on successful submission
	console.log(res)

})
.catch((error)=>{

	// do something on error.
  console.error(error);

})