CreateScript
Specifies the server-side JavaScript that is run upon the creation of the entry instance.
Values
String. Specifies the JavaScript to run. Within the JavaScript, any of the current entry block properties can be accessed.
Examples
r = CRM.FindRecord('Company','Comp_companyid=30');
EG = CRM.GetBlock('companyboxlong');
NewE = EG.GetBlock('comp_name');
NewE.CreateScript = "MaxLength=20";
CRM.AddContent(EG.Execute(r));
Response.Write(CRM.GetPage());
Sets the maximum length of the Entry block comp_name field instance to 20 characters.