simsalabim/sisyphus

Wordpress Nonce Issue

Opened this issue · 1 comments

Hey, I'm running into an issue using Wordpress with the plugin Caldera Forms. I use sisyphus to allow users to come back to fill out forms later in case they couldn't finish it the first time. The issue is, it seems to be persisting the nonce from the original session which blocks submission unless you clear all the data. Any ideas as to how I could avoid this issue. Not sure if it's specific to Caldera forms setup or if it's a wordpress issue. Thanks!

  • Reggie

You just need to exclude the nonce field using the excludeFields method. eg.

form.sisyphus({
  excludeFields: $('[name="my_nonce_fied"],[name="_wp_http_referer"]'),
});