Attribute selected is an event which gets triggered before any attribute's value is updated, this events sends the information of the attribute and the value as property set argument.
XML representation of property set would look something like :
*from bookshelf Now if this property set is available as argument then i think writing script to constrain its value is not a big task.
I have created this snippet, it worked in my case hope it works for others also.
function Cfg_AttributeSelected (SelectedAttribute) { var temp = SelectedAttribute.GetChild(0); var sStr = temp.GetProperty("NewVal"); TheApplication().RaiseErrorText("Error"); }