I'm trying to get a list of all the fields in an active survey, using this code from a script called from /admin/admin.php:
if ($sid) {
$common_data['surveyinfo'] = getSurveyInfo($sid);
require_once(dirname(__FILE__).'/sessioncontrol.php'); // stab in the dark.
$common_data['fieldmap'] = createFieldMap($sid,'full',false,false,$language);
}
Most, but not all, of the time fieldmap is only returning the common result data -- id, submitdate, lastquestion, etc. Not the SGQA codes, which is really what I'm trying to get to. Is there some other call that needs to be made? Or maybe there's another call to get field information?
Thx,
Tac