Verifying data is not in db

How to verify data is not already in the database before saving.

Overview

The issue is that ChronoForms v5 lacks a direct true/false branching option within actions to check for duplicate entries.
Use the Event Switcher action from the Validation group to implement conditional logic, allowing you to stop form submission and display an error message if a duplicate is found.

Answered
ch chriso0258 23 Apr, 2014
Hello,

One of the inputs of a form I've created to add a user is the user's ID#. What I would like to do before I save the data to the db is to check to make sure the ID# isn't already in the db. If there is, I want to implement a show stoppler with a message stating the number is already in the db.

I can't find anything in CF5 where I can add an action to a True / False section of another action as I thought was the case in CF4 where I could carry on if the action was true or run the show stopper (or other things) if the action was false.

Hope this makes some sense.

Thanks for your help.
Chris.
Gr GreyHead 23 Apr, 2014
Answer
Hi Chris,

CFv5 has an Event Switcher action in the 'Validation' action group.

Bob
This topic is locked and no more replies can be posted.