# gridsome-source-gravity-forms

> Wordpress Gravity Forms Source Plugin for Gridsome

Latest version **1.0.1** (published 2020-06-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install gridsome-source-gravity-forms
pnpm add gridsome-source-gravity-forms
yarn add gridsome-source-gravity-forms
bun add gridsome-source-gravity-forms
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2020-06-10 |
| First published | 2020-06-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 13.6 KB |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Theory Digital |
| Maintainers | theorydigital |
| Keywords | gridsome, gravity forms, wordpress, gridsome-plugin, gridsome-source-plugin |

## Links

- npm: https://www.npmjs.com/package/gridsome-source-gravity-forms
- Repository: https://github.com/Theory-Digital/gridsome-source-gravity-forms
- Homepage: https://github.com/Theory-Digital/gridsome-source-gravity-forms#readme
- Issues: https://github.com/Theory-Digital/gridsome-source-gravity-forms/issues
- npm.io page: https://npm.io/package/gridsome-source-gravity-forms

## Dependencies (4)

- [axios](https://npm.io/package/axios.md) ^0.19.2
- [chalk](https://npm.io/package/chalk.md) ^4.0.0
- [nanoid](https://npm.io/package/nanoid.md) ^3.1.9
- [oauth-signature](https://npm.io/package/oauth-signature.md) ^1.5.0

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2020-06-10

## README

# gridsome-source-gravity-forms
Gravity Forms Source Plugin for Gridsome.

Derived from [gatsby-source-gravityforms](https://github.com/robmarshall/gatsby-source-gravityforms) and converted for use in Gridsome

This plugin connects to WordPress Gravity Forms, retrieves the given forms, and adds the forms as well as all related fields to GraphQL.

## Installation

    # Install with NPM
    npm install gridsome-source-gravity-forms
## Configuration
### Default Configuration
In gridsome.config.js

    module.exports = {
        plugins:[
            use:'gridsome-source-gravity-forms',
            options:{
                baseUrl:'WordPress URL Without Trailing Slash',
                include:['FormId1','FormId2',...]
            }
        ]
    }

In your Environment Variables

    GFORMS_CONSUMER_KEY = API Consumer Key from Gravity Forms
    GFORMS_CONSUMER_SECRET = API Consumer Secret from Gravity Forms

### Additional Configuration Options
In gridsome.config.js

    ...
    use:'gridsome-source-gravity-forms',
    options:{
        ignoreFields:['FieldsToIgnore'], //By default both notifications and confirmations are ignored
        api:{
            # These Options are Not Secure and Should be Stored In Environment Variables
            key:'API Consumer Key from Gravity Forms',
            secret:'API Consumer Secret from Gravity Forms'
        }
    }

In you Environment Variables

    GFORMS_INCLUDE = 1,2,3 #String of form ID's separated by commas
    GFROMS_BASE_URL = WordPress URL Without Trailing Slash

## Querying Data
Form and field information can be obtained using a query similar to that below.

    allGravityForms{
        edges{
            node{
                form{
                    id
                    fields{
                        ...
                    }
                }
            }
        }
    }

---
_Source: https://npm.io/package/gridsome-source-gravity-forms · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
