Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to get all available submissionIDs? #14

Open
jdrathe opened this issue Sep 18, 2018 · 0 comments
Open

Is it possible to get all available submissionIDs? #14

jdrathe opened this issue Sep 18, 2018 · 0 comments

Comments

@jdrathe
Copy link

jdrathe commented Sep 18, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant