// 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];
// Load JQuery to the script
application.ptMultimedia.scripts.loadJQuery();
// find if we need to render the simple form field
renderSimpleFormField = false;
if ( (StructKeyExists(request, "simpleformexists")) AND (request.simpleformexists EQ 1) )
renderSimpleFormField = true;
if ( NOT StructKeyExists(xparams, "fldName") OR (LEN(xparams.fldName) LTE 0) )
xparams.fldName = fqFieldName;
if ( structKeyExists(request, "element") )
{
if (xparams.req is "Yes") {
thisVal="Required";
}
else
{
thiVal="Label";
}
labelText = '';
tdClass = 'CS_Form_Label_Baseline';
}
else
{
labelText = '';
tdClass = 'cs_dlgLabel';
}
#labelText#
// Get the list permissions and compare
commonGroups = application.ADF.data.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;