Element Validation using PHP

ritesh123

Member
Hi Everyone

I have some requirement.
I have Form in which one element is dropdown
whose value can be "Yes" or "No" using dropdown element.

I want to use Element Validation Rule using PHP or something else

Expectation is:-When someone fills the Form the validation should happen on this dropdown element.

If the Value "Yes" already exist in list of records then it should prompt the user saying the "Yes" already exist in other records.

But if "NO" already exist then it should NOT prompt and then user can save the record.

This is something like unique value but applicable only for "YES" value.
 
You can use "isuniquevalue" + the condition field to test if the validation should be run (so returning false if your dropdown is NO).
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top