fieldVersion = "2.0.8"; // Variable for the version of the field - Display in Props UI // initialize some of the attributes variables typeid = attributes.typeid; prefix = attributes.prefix; formname = attributes.formname; currentValues = attributes.currentValues; // Setup the default values defaultValues = StructNew(); defaultValues.componentPath = ""; defaultValues.uiTheme = "ui-lightness"; // Deprecated Settings defaultValues.forceScripts = "0"; // This will override the current values with the default values. // In normal use this should not need to be modified. defaultValueArray = StructKeyArray(defaultValues); // Create the unique id persistentUniqueID = ''; valueWithoutParens = ''; hasParens = 0; cfmlFilterCriteria = StructNew(); if (NOT Len(persistentUniqueID)) persistentUniqueID = CreateUUID(); for(i=1;i lte ArrayLen(defaultValueArray); i++) { // If there is a default value to exists in the current values // AND the current value is an empty string // OR the default value does not exist in the current values if( ( StructKeyExists(currentValues, defaultValueArray[i]) AND (NOT LEN(currentValues[defaultValueArray[i]])) ) OR (NOT StructKeyExists(currentValues, defaultValueArray[i])) ) { currentValues[defaultValueArray[i]] = defaultValues[defaultValueArray[i]]; } } Session['#persistentUniqueID#'] = cfmlFilterCriteria; application.ADF.scripts.addFooterJS(cftFooterJS,"TERTIARY");
Component Name:
UI Theme:

ADF Custom Field v#fieldVersion#