Jump to content

don't allow duplicates in db with form builder


Peter Troeger
 Share

Recommended Posts

There is, but it's not recommended, because you'd need to load all submitted entries into memory, which does not scale well. FormBuilder (and it's storage method) is not particularly well suited for such needs. You'd want to use pages for that use case as pages can be searched in db for particular field values.

  • Like 1
Link to comment
Share on other sites

36 minutes ago, LostKobrakai said:

There is, but it's not recommended, because you'd need to load all submitted entries into memory, which does not scale well. FormBuilder (and it's storage method) is not particularly well suited for such needs. You'd want to use pages for that use case as pages can be searched in db for particular field values.

Could you explain how I can do that or point me in the right direction? It'd be for a maximum of 500 entries, so it would be ok if it doesn't scale :)

Thanks!
Peter

Link to comment
Share on other sites

@LostKobrakai

Out of curiosity, and I have never used formbuilder, but wouldn't something similar to this be possible?

$a = $people_who_have_signed_up->findOne("email_field=email_adrress_posted");
if($a->count){
	//you have submitted this form before.
}

And if so, wouldn't that be decently efficient as it's a 'findOne'?

Link to comment
Share on other sites

9 hours ago, Peter Troeger said:

I'm using form builder pro and saving email-adresses to the databse.

I only want people to be able to sign up once.

There is a dedicated "VIP support" subforum for questions relating to Form Builder.

See this thread for limiting entries based on email address:

 

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...