Please replace the ??? with your data!
[desc]:Excellent Plug in, Works great. But now I am trying to use the api to show the images from a file upload. Then each image is uploaded, it is then renamed with a prefix of the ID.I need the id so I can display the image in wordpress.
In the url you can see the data at the bottom of the page I have captured with database tracking.
How do I access the ID?
I have tried using the value of Id ID and id no luck.
Per help: {ID} Inserts a unique and referenceable form ID (provided that DB Tracking is enabled!)
I am unable to get a hidden field with the value. post-approval|{id} to work.
Custom fields and Extra fields is unchecked.
I have tried with and without.
Here is my code that works for access the values, except ID :(
<?php
$array = get_cforms_entries(); /* all data, no filters */
echo '<table>';
echo '<tr><th>Name</th><th>Model</th><th>Build</th><th>Photo</th><th>approval code</th><th>ID</th></tr>';
foreach( $array as $e ){
echo '<tr><td>' . $e['data']['Your Name'] . '</td><td>' . $e['data']['Bicycle Model'] . '</td><td>' . $e['data']['Build'] . '</td><td>' . $e['data']['Photo[*1]'] . '</td><td>' . $e['data']['post-approval'] . '</td><td>' . $e['data']['Id'] . '</td><tr>';
}
echo '</table>';
?>
I have tried 3 different spelling of id yet cant access the value.
Thanks for your time.