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.6"; // 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; } unitsOptions = listToArray('px,%,em,rem,vw,vh,vmin,vmax,none'); units = structKeyExists(currentValues, 'units') ? currentValues.units : 'px'; unitsHints = ArrayNew(1); unitsHintsList = ""; unitsHints[1] = 'Spacing in pixels'; unitsHints[2] = 'Spacing relative to the percentage of the parent'; unitsHints[3] = 'Spacing relative to the font-size of the element (2em = 2 times the size of the current font)'; unitsHints[4] = 'Spacing relative to font-size of the root element'; unitsHints[5] = 'Spacing relative to 1% of the width of the viewport'; unitsHints[6] = 'Spacing relative to 1% of the height of the viewport'; unitsHints[7] = "Spacing relative to 1% of viewport's smaller dimension"; unitsHints[8] = "Spacing relative to 1% of viewport's larger dimension"; unitsHints[9] = "Don't set spacing"; cnt = 1; attrs = ''; 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">  
 
Units Default:
Top Default: #units#
Right Default: #units#
Bottom Default: #units#
Left Default: #units#

ADF Custom Field v#fieldVersion#