Access the Javascript API
Accepted answer
Please look at the following Wiki entry: https://jazz.net/wiki/bin/view/Main/AttributeCustomization
It provides all the details on Attribute Customization including script based attribute customization.