Jun 22nd, 2015, 4:26 AM
Hi,
I'm using the api to retrieve submissions which works well. However my dropdown list has the following entries....
Order Field Value Display Text
1 ami-f5f86b82 Centos6-template-clean
But when I try and get the information back in an xml format I only ever get the display text.
How can I retrieve the Filed value instead?
This is the code I'm using.....
<?php
require("global/api/api.php");
$page = ft_api_load_field("page", "page", 1);
ft_api_show_submissions(1, 1, 7, $return_as_string);
?>
And this is the result.....
<submission_id><![CDATA[13]]></submission_id>
<col_1><![CDATA[*****]]></col_1>
<col_2><![CDATA[t2.micro]]></col_2>
<col_3><![CDATA[default]]></col_3>
<col_4><![CDATA[Centos6-template-clean]]></col_4>
<col_5><![CDATA[EU (Ireland)]]></col_5>
<submission_date><![CDATA[2015-06-22 11:50 AM]]></submission_date>
<last_modified_date><![CDATA[2015-06-22 12:14 PM]]></last_modified_date>
<ip_address><![CDATA[********]]></ip_address>
Any ideas?
Cheers,
Neil
I'm using the api to retrieve submissions which works well. However my dropdown list has the following entries....
Order Field Value Display Text
1 ami-f5f86b82 Centos6-template-clean
But when I try and get the information back in an xml format I only ever get the display text.
How can I retrieve the Filed value instead?
This is the code I'm using.....
<?php
require("global/api/api.php");
$page = ft_api_load_field("page", "page", 1);
ft_api_show_submissions(1, 1, 7, $return_as_string);
?>
And this is the result.....
<submission_id><![CDATA[13]]></submission_id>
<col_1><![CDATA[*****]]></col_1>
<col_2><![CDATA[t2.micro]]></col_2>
<col_3><![CDATA[default]]></col_3>
<col_4><![CDATA[Centos6-template-clean]]></col_4>
<col_5><![CDATA[EU (Ireland)]]></col_5>
<submission_date><![CDATA[2015-06-22 11:50 AM]]></submission_date>
<last_modified_date><![CDATA[2015-06-22 12:14 PM]]></last_modified_date>
<ip_address><![CDATA[********]]></ip_address>
Any ideas?
Cheers,
Neil