// 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 photo field ID
if ( NOT StructKeyExists(xparams, "photoFieldID") OR (LEN(xparams.photoFieldID) LTE 0) )
xparams.photoFieldID = fqFieldName;
appConfig = application.ptPhotoGallery.getAppConfig();
application.ptPhotoGallery.scripts.loadJQuery(force=1);
application.ptPhotoGallery.scripts.loadJQueryUI();
application.ptPhotoGallery.scripts.loadADFLightbox();
if ( structKeyExists(request, "element") )
{
labelText = '';
tdClass = 'CS_Form_Label_Baseline';
}
else
{
labelText = '';
tdClass = 'cs_dlgLabel';
}