var inputParameters = Duplicate(arguments.parameters); var currentValue = arguments.value; // the field's current value var fieldIDVal = arguments.fieldName; // Set the field ID if ( (NOT StructKeyExists(inputParameters, "fldName")) OR (LEN(inputParameters.fldName)) ) fieldIDVal = inputParameters.fldName; // Check the default value if ( LEN(currentValue) LTE 0 ) { currentValue = 'no'; // If defaulted to checked if ( inputParameters.defaultVal EQ "yes" ) currentValue = 'yes'; } renderJSFunctions(argumentCollection=arguments,fieldIDVal=fieldIDVal);
var loadScriptJS = ''; var inputParameters = Duplicate(arguments.parameters); // Load the inline JavaScript after the libraries have loaded application.ptPhotoGallery.scripts.addFooterJS(loadScriptJS, "TERTIARY"); // PRIMARY, SECONDARY, TERTIARY public string function getResourceDependencies() { return listAppend(super.getResourceDependencies(), "jQuery"); } public string function loadResourceDependencies() { application.ptPhotoGallery.scripts.loadJQuery(); }