My form have two fields: name and nickname. You have a name, a nickname or both, but you mas have at least one.
I never use event switch or others resources. I only know how to use the validation inside the field.
What should I trY?
For this you may need a custom rule to check both values
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi.
Ok, I need a custom rule, but where I do it?
I thought about "IF conditions". I can
1 - write the rule (one not null), then put the save block inside the IF.
2 - write the rule (both null), then send back o beginning
This is the way?
How I send back to beginning?
You want to validate the fields on the form or after the form is sent ?
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
On the form.
After I konw how to do. I build a PHP page with the results.
So you need a custom javascript function for that
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Javascript?? Ooh boy, I am out.
I'm a very limited programer, Javascript is out of my range.
Thanks for your suport and time.
Anglais
Hello rslyra
I created a simple example with 4 input zones.
The "Name" and "Identifier" input fields cannot be null at the same time.
In this example, you have verification at 2 different times:
- The moment you leave an entry area: Programming the 'Empty' event in the entry area.
- The moment when you validate the complete form by clicking on the OK button: Automatic triggering of the validation rules indicated in the "Validation rules" of each input area.
See the example I give you as an attachment.
Jean Marie
Français
J'ai créé un exemple simple avec 4 zones de saisies.
Les zones de saisie "Nom" et "Identifiant" ne peuvent pas être nuls en même temps.
Tu as dans cet exemple la vérification à 2 moments différents :
- Le moment où tu quittes une zone de saisie : Programmation de l'événement 'Empty' de la zone de saisie.
- Le moment où tu valides le formulaire complet en cliquant sur le bouton OK : Déclenchement automatique des règles de validation indiquées dans les "Validation rules" de chaque zone de saisie.
Voir l'exemple que je te donne en pièce jointe.
Jean-Marie
[file=12925]Tests_-_2_zones_avec_au_moins_1_non_vide_20_Apr_2020_15_05_18.cf6bak[/file]
In v7 there is a new "Toggle Validation" field event, you may be able to use that in this situation, toggle the validation when the other field is empty/not empty, I suggest that you try it, but it's still in Beta phase, so you can not use it to build live forms as there may be some core changes, but your test and suggestions will be helpful for the development of course!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
English
I agree to try version 7 but with certain conditions ...
I found the download link for test version 7: https://www.chronoengine.com/blog
But ... Is there a link to the documentation of the different daily versions to find out what changes compared to version 6 and also compared to daily version 7?
- Bug fixes (and bugs still known but not yet fixed)
- Improved functionality (and how to use them)
Thank you
Do you have an idea of the release date of version 7 and will this version be free when we bought version 6?
Français
J'accepte d'essayer la version 7 mais avec certaines conditions...
J'ai trouvé le lien de téléchargement de la version 7 de test : https://www.chronoengine.com/blog
Mais... Y a t il un lien vers la documentation des différentes versions journalières pour savoir ce qui change par rapport à la version 6 et également par rapport à la version 7 journalière ?
- Corrections des bugs (et bugs encore connus mais pas encore corrigés)
- Amélioration des fonctionnalités (et comment les utiliser)
Merci
Avez-vous une idée de la date de sortie de la version 7 et cette version sera-t-il gratuite lorsqu'on a acheté la version 6 ?