// the fields current value currentValue = attributes.currentValues[fqFieldName]; // the param structure which will hold all of the fields from the props dialog xparams = parameters[fieldQuery.inputID]; if ( NOT StructKeyExists(xparams,"uniqueIDtype") OR LEN(TRIM(xparams.uniqueIDtype)) EQ 0 ) xparams.uniqueIDtype = "cfuuid"; // cfuuid or csid if ( NOT StructKeyExists(xparams,"varName") OR LEN(TRIM(xparams.varName)) EQ 0 ) xparams.varName = "uniqueID"; if ( NOT StructKeyExists(xparams,"renderField") OR xparams.renderField NEQ "yes" ) xparams.renderField = "no"; if ( NOT StructKeyExists(xparams,"renderRequestVar") OR !IsBoolean(xparams.renderRequestVar) ) xparams.renderRequestVar = "no"; if ( NOT LEN(currentValue) ) { // Set the Unique ID value the first time the field is rendered if ( xparams.uniqueIDtype EQ "csid" ) currentValue = Request.Site.IDMaster.getID(); else currentValue = createUUID(); } // Set defaults for the label and description includeLabel = false; // Set to false so label does not display includeDescription = false; // Set to false so description does not display // Set the Input Field Type cftInputType = "hidden"; formInputSize = ""; if ( xparams.renderField EQ "yes") { cftInputType = "text"; cftInputSize = 40; includeLabel = true; } // Set the Display the Request Varaible and the Value //if ( xparams.renderRequestVar ) // includeLabel = true; // set this into request scope so other objects can use this request[xparams.varName] = currentValue; size="#cftInputSize#"/>
request.#xparams.varName#: #request[xparams.varName]#
#application.ADF.forms.wrapFieldHTML(inputHTML,fieldQuery,attributes,variables.fieldPermission,includeLabel,includeDescription)#