Validate two fields

prevent duplicate data in two text fields.

Overview

The issue occurs when users enter identical information in both fields.
Use the 'Different' validation rule in the Match validation behavior, specifying the ID of the other field.

Answered
ChronoForms v6
Be BeHoh 03 Dec, 2020
Hi,
I have two textfields: „text_location“ and „text_name“. How can I create a validation rule preventing
that a user inserts the same data in both fields ?

Bernd
Max_admin Max_admin 05 Dec, 2020
Answer
there is a validation rule for text fields called "different", you can use it, you need to supply the id of the other field!

Better use v7 as it has a fields selector!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Max_admin Max_admin 08 Dec, 2020
so you can use the Different rule, it's in the Match validation behavior!
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Post a Reply