1.2.9 • Published 2 years ago

react-lead-form v1.2.9

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Lead form for React JS

npm

First you need to create an account with Boontar TV

Features

  • Faster than Boontar TV widget
  • You can use your own style classes
  • Install the module and start collecting requests, ratings, reviews
  • Admin panel for viewing incoming requests Boontar TV
  • Export requests
  • Embedded analytics

Admin panel

List of incoming requests in the admin panel Boontar TV

Boontar TV - Lead Form Builder

Getting Started

To install the module, run the following in the command line:

npm i react-lead-form --save

Use within your application with the following line of JavaScript:

const ReactLeadForm = require('react-lead-form');

or

import ReactLeadForm from 'react-lead-form'

Available props

NameTypeRequiredDefaultDescription
getIdnumberYes-Lead form unique ID at Boontar TV
apiKeystringYes-Key that you generate in the admin panel Boontar TV
classNameInputLabelstringNo-Custom class for InputLabel
classNameInputstringNo-Custom class for inputs
classNameButtonstringNo-Custom class for button
classNameSuccessTextstringNo-Custom class for success notification
classNameFailedTextstringNo-Custom class for failed notification
classNameContainerstringNo-Custom class for main container
classNameTitlestringNo-Custom class for title
classNameDescstringNo-Custom class for description
classNameInputsContainerstringNo-Custom class for form container
classNameButtonContainerstringNo-Custom class for button and notification block
statusVisiblebooleanYestrueShow form submission status
successStatusstringNoForm sent successfullyText on success
failedStatusstringNoFailed to submit formText on failed
requiredStatusstringNoYou have not filled in the required fieldsText if all required fields were not filled
validateStatusstringNoCheck the correctness of the filled dataText if email or phone types fail validation
onSuccessfuncNo-Callback function after successful form submission
onFailedfuncNo-Callback function after failed form submission
onLoadfuncNo-Callback function after the lead form is loaded
onLoadFailedfuncNo-Callback function if lead form fails to get

Error codes

CodeDescription
1Failed to submit form
2Required fields not filled
3Not correct email
4Not correct phone number

Available input fields

NameIncluded
Text
Number
Date & Time
Date
Time
Slider
Select

Example

import React, { Component } from "react";
import ReactLeadForm from 'react-lead-form'
import 'react-lead-form/dist/index.css'

class HelloWorld extends Component {
  
    onSuccess = () => {

    }

    onFailed = (errorCode) => {
      console.log(errorCode)
    }

    render() {
        return(<ReactLeadForm 
                getId={481} 
                apiKey={'b0f36535c5752895a8f359fcce725cb0d32f51f2'}
                statusVisible={true}
                onSuccess={this.onSuccess}
                onFailed={this.onFailed}
              />)
    }
}

We also have a plug-in widget, the appearance of which is edited only in your personal account: https://github.com/boontar-ltd/react-lead-form-widget

1.2.9

2 years ago

1.2.8

2 years ago

1.2.7

2 years ago

1.2.6

2 years ago

1.2.5

2 years ago

1.2.4

2 years ago

1.2.3

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.4

2 years ago

1.1.3

2 years ago

1.1.1

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago