Welcome, Guest

Validierung mehrerer Felder
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: Validierung mehrerer Felder

Validierung mehrerer Felder 2 years, 10 months ago #6890

Nachdem ich die Facile Forms Script Api mehrmals hoch und runter geackert hab und fast alles damit lösen konnte, hoffe ich nun bei meinem letzen Problem hier Hilfe zu finden.

Folgendes:
In meinem Form werden die Daten zweier Personen abgefragt. Zwingend sind jedoch mindestens die Daten einer Person. Welche von beiden das ist spielt dabei keine Rolle.

Ein Beispiel: Es existiert zwei mal ein Textfeld für die Vornamen. Nun soll geprüft werden, ob mindestens eines davon gefüllt ist. Falls keines von beiden einen Eintrag hat, gibts ne Fehlermeldung. Also ein ff_valuenotempty für 2 Felder.
Kann mir da jemand helfen?
  • Xaser

Re:Validierung mehrerer Felder 2 years, 10 months ago #6903

Hi,

das ist ein Spezialfalls (kontextabhängige Prüfung). Sofern Du Dich mit Javascript etwas auskennst, kannst Du Dir eine eigene Valididierung für den Fall bauen. Du könntest ein neues Skript erstellen (siehe Skriptverwaltung), als Vorlage ff_valuenotempty nehmen, und dieses dann für den Spezialfall kopieren und anpassen.
  • TheMuffinMan

Re:Validierung mehrerer Felder 2 years, 10 months ago #6949

Danke für den Hinweis. Darauf hätte ich auch selbst kommen können - manchmal sieht man den Wald vor lauter Bäumen nicht. Es funktioniert jetzt.
  • Xaser
  • Page:
  • 1
Moderators: TheMuffinMan, ForumSupport
Time to create page: 0.30 seconds

Facebook Discount - 40% Off!

Fans of our Facebook page here are entitled to get a 1-year-subscription for the price of a 6-months!

Steps to take:

  • Become a fan on Facebook (Like) here
  • Purchase a 6-months-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of your like and we'll upgrade to the 1-year-subscription

Joomla!® Forms Discount - 40% Off!

Already purchased a forms extension from a different vendor but your requirements changed and now you need a forms extension that is capable of more than just the standards? We help you to keep the costs for a change under control: Get a 40% discount on our professional membership plan! -- meaning timely unlimited access to all current and future commercial extensions, breezingforms themes & apps and Joomla!® templates at crosstec.de, including 1 year of support -- without any website limitations -- Just prove that you previously purchased another forms extension for Joomla!® from a different vendor and you are qualified.

Steps to take:

  • Purchase a 1-year-subscription from here
  • Write a quick email to This email address is being protected from spambots. You need JavaScript enabled to view it. with your username and prove of the purchase for the other form vendor and we'll upgrade to the professional-subscription

About

Crosstec GmbH & Co. KG

Bergisch-Gladbacher-Str. 829

51069 Cologne, Germany

Imprint