TOPIC:

not already in the Database fieldvalidation 4 months 2 weeks ago #269906

  • Topic Author
  • Sherco
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Hi
I am new in BF with Joomla, and try to build a first form.

i want to ensure there is not already an existing record when i enter a field (e.g email adress).
I would like to check this immediatly after the input is done ( when the field loose the focus ?) and not waiting for the whole form validation.
Is there any way to request the database before form validation ?
Thanks for your answer

Please Log in or Create an account to join the conversation.

Last edit: Post by Sherco.

not already in the Database fieldvalidation 4 months 2 weeks ago #269910

  • Mirec's Avatar
  • Mirec
  • Away
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2676
  • Karma: 2
  • Thanks: 145
Hi,

do you want to check the database before submitting the button or after ?


Regards,
Mirko

Please Log in or Create an account to join the conversation.

not already in the Database fieldvalidation 4 months 2 weeks ago #269911

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 10539
  • Karma: 3
  • Thanks: 705
Hi,

you can do this:
crosstec.org/en/blog/947-check-if-email-already-entered.html

If same email is already in database you will see error, the same you can do for every field

Regards,
Tihana

Please Log in or Create an account to join the conversation.

not already in the Database fieldvalidation 4 months 2 weeks ago #269912

  • Topic Author
  • Sherco
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Hi, i want to check the database before submitting
thank you for your quick answer

Please Log in or Create an account to join the conversation.

not already in the Database fieldvalidation 4 months 2 weeks ago #269916

  • Mirec's Avatar
  • Mirec
  • Away
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 2676
  • Karma: 2
  • Thanks: 145
Hi,

oke, please see the link that @Tihana provided in the comment above, and if you get stuck or have mo questions, feel free to ask!


Regards,
Mirko

Please Log in or Create an account to join the conversation.

not already in the Database fieldvalidation 4 months 2 weeks ago #269924

  • Topic Author
  • Sherco
  • Offline
  • Junior Breezer
  • Junior Breezer
  • Posts: 34
  • Thanks: 0
Well, as far as i have understood the code in the (helpfull) given link, the validation happens after submiting.
Either there is a way to request the database and load the results when the form is loaded (so i can use them with Javascript), or it is possible to send a request , check the database and return an answer to the form , when the field loose the focus ?
Another solution is to make a single field form, submit for checking, and show conditional second form depending on the check.
any advice ?

Please Log in or Create an account to join the conversation.

Time to create page: 0.051 seconds

BreezingForms Pro 1.4.7 for WordPress Released!

Available in the membership section.

September Discount!

Massive discounts on all subscriptions!

Get Your Subscription Here

Quick Links

Downloads

BreezingForms

ContentBuilder

BreezingCommerce

Templates

Documentation

BreezingForms

ContentBuilder

BreezingCommerce

Apprendre BreezingForms (French Community)

Apprendre et maîtriser BreezingForms par des tutoriels et exemples, le tout en français

breezingforms.eddy-vh.com

Questions et réponses sur les forums de l'AFUJ

AFUJ

Special Offer

Summer Sale! All subscriptions at a special price!

Includes prio support, all of our current and future Joomla!® extensions and Joomla!® templates for the duration of your membership.

Get it from here

3rd Party Discount - 25% Off

We help you to keep your costs under control. If you are a new member and purchased a form building tool from a different form vendor, then you'll get a 25% discount on our subscription plans.

How to receive the discount:

Send us a quick email to sales@crosstec.org with a proof of purchase (for example a paypal receipt), await payment instructions and enjoy your membership!