gatsby-theme-egghead-blog icon indicating copy to clipboard operation
gatsby-theme-egghead-blog copied to clipboard

Convertkit form doesn't work out of the box

Open jnielson94 opened this issue 4 years ago • 0 comments

I enabled the newsletter sign up, but the form included in the theme didn't quite work. From what it took to get it to work for me it was missing:

  • Utilizing the PUBLIC_KEY that's in the .env files
  • Setting isSubmitting to false when the submission was done

I couldn't find any documentation for the https://app.convertkit.com/forms/${FORM_ID}/subscriptions endpoint being used, so it was a bit of trial and error to figure out that it was just missing the public key... The isSubmitting issue was leading to the form never switching out for the message that they should check their inbox, even if the actual request was successful :)

jnielson94 avatar Apr 09 '20 21:04 jnielson94