Gravity Forms npm package

Hello,

I have now published a new npm package for the Gravity Forms plugin.

And here is a demo site:

6 Likes

Great @kasper! Thanks for your contribution :smiley:

1 Like

@kasper thank you so much!! I have a question on what key is required, i usually just add the license key to the plugin and tried adding that to the gfAuth with no success. I created an Application Password on the WP admin settings but that also didn’t work. Currently just getting 401 errors, any help would be appreciated! Thanks again

You have to enable the REST API of Gravity Forms and getting the v2 API keys, which can be found in the GF settings.

3 Likes

@Johan that was it! Thanks

Hi, @kasper

I am working with a project in frontity using the decoupled mode and I am finding that after running the installation procedures you mentioned, the calls to the REST API are not happening to the correct endpoint. let me explain

The frontity FE(Front end) is located in the URL station.com
The WordPress BE(Back end) is found at backend.station.com

After installing all packages on both, the form test renders
image

but when I hit the submit button, there is a request that need to be done to

backend.station.com/wp-json/wp/v2/pages/?_embed=true&slug=gravity-forms-test

but instead is happening to

station.com/wp-json/wp/v2/pages/?_embed=true&slug=gravity-forms-test

I am getting a 404 error because there is no WP REST API on the frontend URL but when running the call using the BE URL it works.

I would like to know if you get my point and if not if there is a way to discuss this privately