// Variable for the version of the field - Display in Props UI.
fieldVersion = "2.0.2";
// initialize some of the attributes variables
typeid = attributes.typeid;
prefix = attributes.prefix;
formname = attributes.formname;
currentValues = attributes.currentValues;
if( not structKeyExists(currentValues, "fldID") )
currentValues.fldID = "";
if( not structKeyExists(currentValues, "displayFormat") )
currentValues.displayFormat = "";
if( not structKeyExists(currentValues, "uiTheme") )
currentValues.uiTheme = "";
if( not structKeyExists(currentValues, "fldIcon") )
currentValues.fldIcon = "none";
if( not structKeyExists(currentValues, "fldClearDate") )
currentValues.fldClearDate = 'no';
Display Format:
d
day without leading zero
dd
day with leading zero
D
weekday name short
DD
weekday name long
m
month without leading zero
mm
month with leading zero
M
month name short
MM
month name long
y
year two digits
yy
year four digits
UI Theme:
Field ID:
Please enter the field ID to be used via JavaScript. If blank, will use default CS field name.