// Load jQuery
application.ptPhotoGallery.scripts.loadJQuery();
// 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 field ID
if ( (NOT StructKeyExists(xparams, "fldName")) OR (LEN(xparams.fldName)) )
fieldIDVal = xparams.fldName;
else
fieldIDVal = fqFieldName;
// Check the default value
if ( LEN(currentValue) LTE 0 ) {
currentValue = 'no';
// If defaulted to checked
if ( xparams.defaultVal EQ "yes" )
currentValue = 'yes';
}
if ( structKeyExists(request, "element") )
{
labelText = '';
tdClass = 'CS_Form_Label_Baseline';
}
else
{
labelText = '';
tdClass = 'cs_dlgLabel';
}
#labelText#
// Get the list permissions and compare
commonGroups = server.ADF.objectFactory.getBean("data_1_0").ListInCommon(request.user.grouplist, xparams.pedit);
// Set the read only
readOnly = true;
// Check if the user does have edit permissions
if ( (xparams.UseSecurity EQ 0) OR ( (xparams.UseSecurity EQ 1) AND (ListLen(commonGroups)) ) )
readOnly = false;