DB Read Condition Not Equal To

Filter database records to exclude a specific value in ChronoForms.

Overview

The DB Read action was incorrectly configured to match records equal to a variable instead of excluding them.
Modify the condition in the DB Read action to use a 'not equal' operator by adjusting the array structure as shown in the linked FAQ.

Answered
ChronoForms v5
vi vividal 16 Mar, 2017
So I thought this would be simple but I can't figure it out after scouring the forum. I have a view in my DB that I want to pull all the records from if one field (TeamId) DOES NOT EQUAL the value of a variable (Team) that I pass to the form.

In my DB Read I have this for the condition and it pulls all the records that EQAUL the value of the variable, but I can't figure out how to make it NOT EQUAL.

<?php
return array ("Team" => ($form->Data("TeamId")) );
?>


How do a I do a not equal (!=) ?
vi vividal 16 Mar, 2017
Thx, I dont know how I didnt find that FAQ. I tried basically every other combination of != in the condition...
This topic is locked and no more replies can be posted.