var retHTML = "";
var i = 1;
var ceDataArray = getChooserData(arguments.item, arguments.queryType, arguments.searchValues, arguments.csPageID);
// Loop over the data
for ( i=1; i LTE ArrayLen(ceDataArray); i=i+1) {
// Assemble the render HTML
if ( StructKeyExists(ceDataArray[i].Values, "#variables.ORDER_FIELD#")
AND LEN(ceDataArray[i].Values[variables.ORDER_FIELD])
AND StructKeyExists(ceDataArray[i].Values, "#variables.CE_FIELD#")
AND LEN(ceDataArray[i].Values[variables.CE_FIELD]) ) {
// Validate if the field is active
if ( ceDataArray[i].Values.active EQ 1 ) {
retHTML = retHTML & "#LEFT(ceDataArray[i].Values[variables.ORDER_FIELD],50)#
#Left(ceDataArray[i].Values.question, 50)#";
}
}
}