TOPIC:

Database 2 fields validation 3 weeks 6 hours ago #263094

  • Luisserafim's Avatar Topic Author
  • Luisserafim
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 201
  • Thanks: 1
Hi.

We have "1st application" and "replacement application" which, as the name indicates, will replace the previous one in case any changes to the application already submitted are necessary.

When submitting the "replacement application" it is mandatory to validate the replacement so that the data cannot be changed by third parties.

That said, what is intended is the validation of 2 fields:

When submitting a "replacement application" the VAT number and previous application number or record_ID must be validated. If these do not match it should show an error.

Tx in advance

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

Database 2 fields validation 3 weeks 6 hours ago #263095

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 957
  • Karma: 2
  • Thanks: 50
Hi,


I just want to be sure, if I understand you well you want to compare two elements in the Form, and if they have the same values, submit the Form, otherwise, show the error?


Regards,
Mirko

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

Last edit: Post by Mirec.

Database 2 fields validation 3 weeks 5 hours ago #263098

  • Luisserafim's Avatar Topic Author
  • Luisserafim
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 201
  • Thanks: 1
Hi.

I have already submitted a previous application with the VAT number and record_ID fields (which I received on the thankyou page).

Now when submitting the "replacement application" I need to fill in 2 fields from the previous application: the record_ID and the VAT Number.

If these do not match, it is intended to show an error. If application 956 does not have VAT Number: 123456789 Shows error.

Tx in advance

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

Database 2 fields validation 3 weeks 5 hours ago #263099

  • tihana.krivic's Avatar
  • tihana.krivic
  • Offline
  • Moderator
  • Moderator
  • Posts: 6926
  • Karma: 3
  • Thanks: 493
Hi Luis,

this is 2 forms (previous application and replacemend aplication) or?

Sorry for missundestanding

Regards,
Tihana

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

Last edit: Post by tihana.krivic.

Database 2 fields validation 3 weeks 5 hours ago #263100

  • Luisserafim's Avatar Topic Author
  • Luisserafim
  • Offline
  • Expert Breezer
  • Expert Breezer
  • Posts: 201
  • Thanks: 1
Yes thats it

"1ª Candidatura" = 1st aplication
"Candidatura de substituição" = Replacemend aplication

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

Database 2 fields validation 3 weeks 5 hours ago #263101

  • Mirec's Avatar
  • Mirec
  • Offline
  • Ultimate Breezer
  • Ultimate Breezer
  • Posts: 957
  • Karma: 2
  • Thanks: 50
Hi,

ok,

Now when submitting the "replacement application" I need to fill in 2 fields from the previous application: the record_ID and the VAT Number.


Do you have in Form 'replacement application' populated fields with values 'record_ID ' and 'VAT Number'?
If you don't have populated those fields you first need to populate that field with values from previously submitted applications and then make validation for them in Form 'replacement application'.

Regards,
Mirko

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

Last edit: Post by Mirec.
Time to create page: 0.042 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!