// CUSTOM ELEMENT INFO variables.CUSTOM_ELEMENT = "Poll Question"; variables.CE_FIELD = "ID"; variables.SEARCH_FIELDS = "title"; variables.ORDER_FIELD = "title"; // Layout Flags variables.SHOW_SECTION1 = false; // Boolean variables.SHOW_SECTION2 = false; // Boolean // STYLES variables.MAIN_WIDTH = 580; variables.SECTION1_WIDTH = 270; variables.SECTION2_WIDTH = 270; variables.SECTION3_WIDTH = 580; variables.SELECT_BOX_HEIGHT = 350; variables.SELECT_BOX_WIDTH = 250; variables.SELECT_ITEM_HEIGHT = 53; variables.SELECT_ITEM_WIDTH = 210; variables.SELECT_ITEM_CLASS = "ui-state-default"; variables.JQUERY_UI_THEME = ""; // ADDITIONS variables.SHOW_ALL_LINK = false; // Boolean 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)#
  • "; } } }