Jump to content

Formbuilder Form Creating Duplicate Entries?


999design
 Share

Recommended Posts

Hi all,

Running into an odd error that I can't seem to get my head around.

We have 2 separately created Formbuilder forms sitting on a single page.

But we keep experiencing weird results with them, originally we couldn't get one of the forms to ever submit so we ended up disabling CSRF for them which let us get around this issue.

However it then causes a problem in that with CSRF disabled, one of forms always records 2 entries on submission. Just a straight duplicate within the entries for that form.

So trying to stop this happening we tried enabling CSRF again and although that does stop the duplicated entry, it ends up giving really weird feedback such as the attached screengrab.

Hazarding a guess I assume whatever is trigger on submission is firing twice because of the presence of the second form, but I have no idea why this would be the case as they are 2 seperately named forms?

Any ideas?

Screen Shot 2020-07-23 at 01.38.58.png

Link to comment
Share on other sites

Check the id's of each form & its submit button If they're the same for both and depending on your embed method, both will submit when either form is submitted. Had a similar issue a while ago and changing the form ID's to be unique helped. See 

 

Link to comment
Share on other sites

Thanks for that, I could see why that should work but not having much luck.

We have even removed the multiple forms, and just left the one on the page but we still see duplicate entries?

I should mention the form is in a modal, but not sure why that would effect anything?

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...