application.ADF.scripts.loadJQuery(); // Variable for the version of the field - Display in Props UI. fieldVersion = "2.0.1"; // 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.defaultText = "This is the defaulted text"; //defaultValues.useUdef = 0; //defaultValues.defaultValue = ""; //This will override the default values with the current values. //In normal use this should not need to be modified. currentValueArray = StructKeyArray(currentValues); for(i=1;i<=ArrayLen(currentValueArray);i++){ //If there is a default value set AND there is a current value set update the default value with the current value if(StructKeyExists(defaultValues,currentValueArray[i])){ defaultValues[currentValueArray[i]] = currentValues[currentValueArray[i]]; } }

ADF Custom Field v#fieldVersion#