application.ADF.scripts.loadJQuery(); application.ADF.scripts.loadADFLightbox(); application.ADF.scripts.loadJQueryUI(); uploadUUID = CreateUUID(); // the fields current value currentValue = attributes.currentValues[fqFieldName]; currentFilename = ""; if(Len(currentValue)){ //Replace out the --uuid from the filename rightCharacters = Len(uploadUUID)+2+4; currentFilename = Replace(currentValue,Right(currentValue,rightCharacters),'')&Right(currentValue,4); } // the param structure which will hold all of the fields from the props dialog xparams = parameters[fieldQuery.inputID]; // find if we need to render the simple form field renderSimpleFormField = false; if ( (StructKeyExists(request, "simpleformexists")) AND (request.simpleformexists EQ 1) ) renderSimpleFormField = true; acceptedFileTypes = xparams.filetypes; for(i=1;i<=ListLen(acceptedFileTypes);i++){ acceptedFileTypes = ListSetAt(acceptedFileTypes,i,"*."&ListGetAt(acceptedFileTypes,i)); } acceptedFileTypes = ListChangeDelims(acceptedFileTypes,";"); fieldDefaultValues = application.ADF.ceData.getFieldParamsByID(fieldQuery.inputID); filePath = fieldDefaultValues.filePath; imageURL = "/ADF/extensions/customfields/file_uploader/handleFileDownload.cfm?subsiteURL=#request.subsite.url#&fieldID=#fieldQuery.inputID#&filename="; concatenator = ""; if(Find('/',filePath)){ concatenator = '/'; }else{ concatenator = '\\'; } filePath = Replace(filePath,"\","\\","ALL"); if ( structKeyExists(request, "element") ){ labelText = ''; tdClass = 'CS_Form_Label_Baseline'; }else{ labelText = ''; tdClass = 'cs_dlgLabel'; } #labelText#
#currentValue#