Search the site

 Problem Description

When I try to set a description to my field, I get a script error.



 Solution

The field object inherits the description property from the fields collection. This means that you must first add the field object to the field collection before you use the description property.

Example:
var aFld= Server.createobject("w3ss.TextField");
Document.Fields("MyField") = aFld;
// Now we can add the description
Document.Fields("MyField").description = 'This field is nice.';


Published by: 0