https://github.com/hutsoninc/react-emma-signup-form
Create signup forms that post to Emma without using the API.
https://github.com/hutsoninc/react-emma-signup-form
emma react
Last synced: 4 months ago
JSON representation
Create signup forms that post to Emma without using the API.
- Host: GitHub
- URL: https://github.com/hutsoninc/react-emma-signup-form
- Owner: hutsoninc
- License: mit
- Created: 2018-06-06T01:42:39.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-06-15T17:38:52.000Z (about 7 years ago)
- Last Synced: 2025-01-27T13:16:20.656Z (5 months ago)
- Topics: emma, react
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/react-emma-signup-form
- Size: 239 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# react-emma-signup-form
A React component for creating forms that post Emma Signup Form data. It does not require any API keys.
## Installation
With npm:
`npm install --save react-emma-signup-form`
## Usage
### Requirements
- Email input name attribute must be "email"
- Other input name attributes must begin with "member\_field\_" and must end with your contact field
- Example: A field named "First Name" will change to "first-name" and will have a name attribute of "member\_field\_first-name"
- Form action url must be: "https://app.e2ma.net/app2/audience/signup/{your-signup-id}/{your-account-id}/"
- Make sure you have an input for each field required by your Emma formFor help finding the required input names and action URL, use [emma-signup-form-helper](https://github.com/hutsoninc/emma-signup-form-helper).
### Usage Example
```jsx
{({ error, loading, success }) => {
return (
{!success && !loading &&
Submit
}
{loading &&Loading...}
{error &&Error.}
{success &&Form submitted.}
)
}}```
## Authors
* **Austin Gordon** - *Development* - [GitHub](https://github.com/AustinLeeGordon)
## License
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details