The following warnings occurred:
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 783 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 783 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $newpmmsg - Line: 40 - File: global.php(841) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/global.php(841) : eval()'d code 40 errorHandler->error
/global.php 841 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 909 - File: global.php PHP 8.1.31 (Linux)
File Line Function
/global.php 909 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5024 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 5024 errorHandler->error
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "additionalgroups" - Line: 7162 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 7162 errorHandler->error
/inc/functions.php 5044 is_member
/global.php 909 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key 1 - Line: 1415 - File: inc/functions.php PHP 8.1.31 (Linux)
File Line Function
/inc/functions.php 1415 errorHandler->error
/inc/functions.php 1370 fetch_forum_permissions
/printthread.php 76 forum_permissions
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.31 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Form Tools
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