Comments (3)
Hey,
Conditional logic has not been added yet. It would be great if you could get involved!
I would start by forking it, connecting to a local install and taking a loop at the GF fields passed to the plugin.
Take a look at this file:
https://github.com/robmarshall/gatsby-source-gravityforms/blob/master/src/gatsby-node.js
Line 50 all forms and fields are brought in. A good place to inspect.
Process forms is where everything is converted
https://github.com/robmarshall/gatsby-source-gravityforms/blob/master/src/utils/processForms.js
I suppose a key needs adding to the field object, relating the fields by ID?
from gatsby-source-gravityforms.
@robmarshall, got it.
What about testing? How to do that?
from gatsby-source-gravityforms.
Create a tester Gatsby app (maybe clone this, that I use : https://github.com/robmarshall/gatsby-gravity-forms-sandbox)
Also clone this plugin.
Then link the plugin, to the tester site using Yarn Link.
- Go to plugin root, type "yarn link"
- It will give you a command. Probably "yarn link gatsby-source-gravityforms"
- Go to your test site root, and enter that command
Now any changes that are made in the plugin, automatically push to the build.
To compile the plugin as you build
yarn watch
from gatsby-source-gravityforms.
Related Issues (19)
- Minor edits to your docs HOT 1
- Error: Cannot find module './0AuthParameters' HOT 7
- Config Error HOT 14
- 403 error status HOT 7
- Is there a way to get Site Key for reCAPTCHA? HOT 2
- Can't query field "content" HOT 11
- Basic Auth HOT 1
- Update ignore fields to object instead of array
- Field type conflicts HOT 6
- Support for the latest version of Gatsby/WordPress HOT 1
- Conflicting field types in your data
- Converting Choices fields to Nodes HOT 1
- Improve error message for using wrong oauth_timestamp "Error 401 from GravityForms API"
- Error 401 from Gravity Forms API - provided signature does not match HOT 1
- Allocate confirmations to form HOT 1
- Split unique forms into own nodes
- Add build steps HOT 3
- Full example HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-source-gravityforms.