// 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];
// Set the label ID from the field name
if ( NOT StructKeyExists(xparams, "labelID") OR LEN(TRIM(xparams.labelID)) EQ 0 )
xparams.labelID = TRIM(ReplaceNoCase(fqFieldName,'fic_','')) & "_LABEL";
// Set the Label Class Name
if ( NOT StructKeyExists(xparams, "labelClass") )
xparams.labelClass = "";
// Set the decription DIV ID
if ( NOT StructKeyExists(xparams, "descptID") )
xparams.descptID = "";
// Set the decription DIV Class
if ( NOT StructKeyExists(xparams, "descptClass") )
xparams.descptClass = "";
// Set the hideLabelText flag
if ( NOT StructKeyExists(xparams, "hideLabelText") )
xparams.hideLabelText = false;
// Remove leading and trailing spaces
xparams.labelID = TRIM(xparams.labelID);
xparams.labelClass = TRIM(xparams.labelClass);
xparams.descptID = TRIM(xparams.descptID);
xparams.descptClass = TRIM(xparams.descptClass);
// Get the Discription
description = "";
if ( StructKeyExists(fieldQuery,"DESCRIPTION") )
description = fieldQuery.DESCRIPTION[fieldQuery.currentRow];
//If the fields are required change the label start and end
labelStart = attributes.itemBaselineParamStart;
labelEnd = attributes.itemBaseLineParamEnd;
if ( xparams.req eq "Yes" )
{
labelStart = attributes.reqItemBaselineParamStart;
labelEnd = attributes.reqItemBaseLineParamEnd;
}