It does loop through all entries, since that's what I needed to do.
You did not mention that you wanted to show all entries made by a certain visitor or user. But you can do that. If you return all the form entries, you can use a conditional to check for the existence of a specific username or name and address combination. Or, if you look at the get_leads function in forms_model.php, you will find all sorts of nifty parameters you can send to the function:
[php]
public static function get_leads($form_id, $sort_field_number=0, $sort_direction='DESC', $search='', $offset=0, $page_size=30, $star=null, $read=null, $is_numeric_sort = false, $start_date=null, $end_date=null, $status='active') {
Posted 13 years ago on Thursday November 3, 2011 |
Permalink