application.ADF.scripts.loadJQuery();
application.ADF.scripts.loadADFLightbox();
application.ADF.scripts.loadJQueryUI();
uploadUUID = CreateUUID();
// the fields current value
currentValue = attributes.currentValues[fqFieldName];
currentFilename = "";
// 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;
fieldDefaultValues = application.ADF.ceData.getFieldParamsByID(fieldQuery.inputID);
valueRenderParams = StructNew();
valueRenderParams.currentValue = currentValue;
currentValueRenderData = application.ADF.utils.runCommand(fieldDefaultValues.beanName,"getCurrentValueRenderData",valueRenderParams);
imageURL = "/ADF/extensions/customfields/file_uploader/v2/handleFileDownload.cfm?subsiteURL=#request.subsite.url#&fieldID=#fieldQuery.inputID#&filename=";
concatenator = "";
if ( structKeyExists(request, "element") ){
labelText = '';
tdClass = 'CS_Form_Label_Baseline';
}else{
labelText = '';
tdClass = 'cs_dlgLabel';
}