application.ADF.scripts.loadJQuery(); // Variable for the version of the field - Display in Props UI. fieldVersion = "1.0.2"; // 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.widgetScript = defaultScriptText(); 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]]; } } // Get the cfmlEngine type cfmlEngine = server.coldfusion.productname; if ( !FindNoCase(cfmlEngine,'ColdFusion Server') ) { // For Lucee Inject Extra linebreaks before each open bracket (since the textarea removes them) defaultValues.widgetScript = REReplace(defaultValues.widgetScript, "(\r\n|\n\r|\n|\r)(\[)","&##013;&##010;&##013;&##010;[", "all"); defaultValues.widgetScript = REReplace(defaultValues.widgetScript, "(\r\n|\n\r|\n|\r)(##\[)","&##013;&##010;&##013;&##010;##[", "all"); } --->
Enter WidgetScript syntax to generate Widget Configuration Option Fields.
- Use semi-colons (;) to delimit options. eg. Option 1;Option 2;Option 3
- Use pipes (|) to delimit value/display text pairs. eg. option1value|Option 1;option2value|Option 2

ADF Custom Field v#fieldVersion#
[Config] fields=Columns X-Small;Columns Small;Columns Medium;Columns Large;Theme;Title Tag,Title Color,Title Align,Description Align [Columns X-Small] group_all=none;col-xs-12|1 column;col-xs-6|2 columns;col-xs-4|3 columns description=The number of columns to render when the device size is Extra Small (Phones). [Columns Small] group_all=none;col-sm-12|1 column;col-sm-6|2 columns;col-sm-4|3 columns;col-sm-3|4 columns description=The number of columns to render when the device size is Small (Tablets). [Columns Medium] group_all=none;col-md-12|1 column;col-md-6|2 columns;col-md-4|3 columns;col-md-3|4 columns description=The number of columns to render when the device size is Medium (Desktop). [Columns Large] group_all=none;col-lg-12|1 column;col-lg-6|2 columns;col-lg-4|3 columns;col-lg-3|4 columns;col-lg-2|6 columns description=The number of columns to render when the device size is Large (Large Desktop). [Theme] group_all= default= [Title Tag] group_all=div;h1;h2;h3;h4;h5 default=H2 description=Select a Title Tag [Title Align] group_all=inherit;text-left|left;text-center|center;text-rgith|right description=Select a Title Alignment [Title Color] group_admin=inherit;red;yellow;orange;purple group_all=inherent;red;yellow;orange description=Select a Title Color [Description Align] group_all=inherit;text-left|left;text-center|center;text-rgith|right description=Select a Description Alignment