api
api copied to clipboard
Is it possible to get all available submissionIDs?
I want to use a loop to get all LastName, FirstName and submissionIDs for a given form. I will use this to create a hyperlink that passes the submissionid on to another page that will display the form. Pseudocode: foreach{ $IDs= getAllSubmissions; $form_id = 1; $submission_id = ?; $submission = $api->getSubmission($form_id, $submission_id); $array = array($submission["LastName"], $submission["FirstName"]); $comma_separated = implode (", ", $array); echo "<a href='ViewForm.php?submission_id=$submission_id'target='_blank'>$comma_separated"; }