prefix = attributes.prefix; currentValues = attributes.currentValues; typeid = attributes.typeid; formname = attributes.formname; // Variable for the version of the field - Display in Props UI. fieldVersion = "2.1.2"; // initialize some of the attributes variables optionsList = "top,right,bottom,left"; showOptionsList = "showTop,showRight,showBottom,showLeft"; // Possible Values List PossibleValues = '10,9,8,7,6,5,4,3,2,1,0'; if( StructKeyExists(currentValues, "PossibleValues") ) PossibleValues = application.ADF.paddingSettings.normalizePaddingValues(PaddingValues=currentValues.PossibleValues); // Loop over Options to set defaults and check for current saved values for ( i=1; i LTE ListLen(optionsList); i=i+1 ) { optionItem = listGetAt(optionsList,i); variables[optionItem] = 0; if( StructKeyExists(currentValues,optionItem) ) variables[optionItem] = application.ADF.paddingSettings.normalizePaddingValues(PaddingValues=currentValues[optionItem]); } // Loop over ShowOptions to set defaults and check for current saved values for ( s=1; s LTE ListLen(showOptionsList); s=s+1 ) { showOptionItem = listGetAt(showOptionsList,s); variables[showOptionItem] = 1; if( !StructKeyExists(currentValues,showOptionItem) OR currentValues[showOptionItem] EQ 0 ) variables[showOptionItem] = 0; } application.ADF.scripts.addFooterJS(cftFooterJS,"TERTIARY");
Possible Values:
If Possible Values are specified, the user is presented with a selection list of values.
Otherwise, an input control will be presented.

Show: checked="checked">   checked="checked">   checked="checked">   checked="checked">  
 
Top Default: px
Right Default: px
Bottom Default: px
Left Default: px

ADF Custom Field v#fieldVersion#