// Variable for the version of the field - Display in Props UI.
fieldVersion = "1.0";
// initialize some of the attributes variables
typeid = attributes.typeid;
prefix = attributes.prefix;
formname = attributes.formname;
currentValues = attributes.currentValues;
if( not structKeyExists(currentValues, "numberOfStars") )
currentValues.numberOfStars = 5;
if( not structKeyExists(currentValues, "halfStars") )
currentValues.halfStars = 0;