api icon indicating copy to clipboard operation
api copied to clipboard

Is it possible to get all available submissionIDs?

Open jdrathe opened this issue 7 years ago • 0 comments

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"; }

jdrathe avatar Sep 18 '18 14:09 jdrathe