sisyphus icon indicating copy to clipboard operation
sisyphus copied to clipboard

Wordpress Nonce Issue

Open regiside opened this issue 6 years ago • 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

regiside avatar Jan 08 '19 03:01 regiside

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

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

designbureau avatar Jan 25 '19 09:01 designbureau