CMDBuild Forum

Autofill JS script

Hi,
we are using KKS coding system, and we define that first two characters defines Unit.
how to set JS to autofill “Unit” field to “take” first tow characters from Name field in Assets class?