var inputParameters = Duplicate(arguments.parameters); var currentValue = arguments.value; // the field's current value var readOnly = (arguments.displayMode EQ 'readonly') ? true : false; // Get the Photo Category records var photoCategoryData = application.ptPhotoGallery.photoDAO.getCategories(); var cleanRegEx = '(''/>|''/>|"/>|"/>|"/>|"/>|''>|''>|">|">|">|">|<!--| #currentCatName# var inputParameters = Duplicate(arguments.fieldParameters); var loadScriptJS = ''; // Load the inline JavaScript after the libraries have loaded application.ptPhotoGallery.scripts.addFooterJS(loadScriptJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY var inputParameters = Duplicate(arguments.parameters); if ( NOT StructKeyExists(inputParameters, "displayField") ) inputParameters.displayField = "true"; if ( NOT StructKeyExists(inputParameters, "jsFieldID") ) inputParameters.jsFieldID = arguments.fieldName; return inputParameters; private any function getValidationJS(required string formName, required string fieldName, required boolean isRequired) { if (arguments.isRequired) return 'hasValue(document.#arguments.formName#.#arguments.fieldName#, "TEXT")'; return ""; } private string function getValidationMsg() { return "Please select a value for the #arguments.label# field."; } public string function getResourceDependencies() { return listAppend(super.getResourceDependencies(), "jQuery"); } public string function loadResourceDependencies() { application.ADF.scripts.loadJQuery(); }