// 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];
// Validate the property fields are defined
if(!Len(currentvalue) AND StructKeyExists(xparams, "defaultVal")){
currentValue = xparams.defaultVal;
}
if ( NOT StructKeyExists(xparams, "displayField") )
xparams.displayField = "true";
if ( NOT StructKeyExists(xparams, "jsFieldID") )
xparams.jsFieldID = fqFieldName;
// Check if a forced category is passed over the params
if ( StructKeyExists(request.params, "category") AND LEN(request.params.category) ) {
// Set the current value to defaulted category
currentValue = request.params.category;
// hide the field so the category can't be changed
xparams.displayField = "false";
}
// Set defaults for the label and description
includeLabel = true;
includeDescription = true;
// Check if we want the field to display
if ( xparams.displayField EQ "false" ){
includeLabel = false;
includeDescription = false;
}
//-- Update for CS 6.x / backwards compatible for CS 5.x --
// If it does not exist set the Field Permission variable to a default value
if ( NOT StructKeyExists(variables,"fieldPermission") )
variables.fieldPermission = "";
//-- Read Only Check w/ cs6 fieldPermission parameter --
readOnly = application.ADF.forms.isFieldReadOnly(xparams,variables.fieldPermission);
// Load JQuery
application.ADF.scripts.loadJQuery();
// Get the Photo Category records
photoCategoryData = application.ptPhotoGallery.photoDAO.getCategories();
>
#application.ADF.forms.wrapFieldHTML(inputHTML,fieldQuery,attributes,variables.fieldPermission,includeLabel,includeDescription)#