The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
|
Return field value - Printable Version +- Form Tools (https://forums.formtools.org) +-- Forum: Form Tools (https://forums.formtools.org/forumdisplay.php?fid=1) +--- Forum: API (https://forums.formtools.org/forumdisplay.php?fid=17) +--- Thread: Return field value (/showthread.php?tid=5218) |
Return field value - neilr - Jun 22nd, 2015 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 |