TOPIC:

not already in the Database fieldvalidation 1 year 1 month ago #269906

  • Topic Author
  • Sherco
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 34
  • Thanks: 2
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
The following user(s) said Thank You: dulcieveeta

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

Last edit: Post by Sherco.

not already in the Database fieldvalidation 1 year 1 month ago #269910

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 163
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 1 year 1 month ago #269911

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Registered
  • Posts: 12079
  • Thanks: 780
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
The following user(s) said Thank You: dulcieveeta

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

not already in the Database fieldvalidation 1 year 1 month ago #269912

  • Topic Author
  • Sherco
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 34
  • Thanks: 2
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 1 year 1 month ago #269916

  • Mirec's Avatar
  • Mirec
  • Offline
  • Platinum Member
  • Platinum Member
  • Registered
  • Posts: 3262
  • Thanks: 163
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 1 year 1 month ago #269924

  • Topic Author
  • Sherco
  • Offline
  • Junior Member
  • Junior Member
  • Registered
  • Posts: 34
  • Thanks: 2
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 ?
The following user(s) said Thank You: dulcieveeta

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

Time to create page: 0.059 seconds

Support Chat

Join our Discord chat and enter the Crosstec channels for live-support, chat forums and interact directly with the community!

After joining, please enter the Crosstec Area and use the #crosstec-support or #crosstec-general channels.

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

Subscribe to news and updates!

Special Offer

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!

Live Support Chat Opened!

Join our Discord chat here and enter the Crosstec channels to receive live support and talk directly to the team!