I need to retrieve the column name of lime_survey_123456-table by the title of a question
Code:
function getColumnName($response,$title){$fieldmap= createFieldMap($response->survey,'full',null,false,$response->attributes['startlanguage']);foreach($response->attributesas$key=>$value){if(array_key_exists($key,$fieldmap)){if(array_key_exists('title',$fieldmap[$key])&&$fieldmap[$key]['title']===$title){return$key;}}}returnfalse;}
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Last edit: 6 years 4 months ago by DenisChenu. Reason: Else LimeSurvey use