Skip to main content

Field Class

Defines a field in the document.


declare class Field


A field is a set of codes that instructs a RichEdit to insert text into a document automatically. The text inserted into a document when a control processes a field’s codes is the field result for that field. The action of processing a field’s codes to obtain a field result is called a field update.

//Gets URLs of all hyperlinks in the main sub-document
var fields = richEdit.document.mainSubDocument.fieldsInfo;
var hyperlinkUrls = [];
for(var i = 0; i < fields.length; i++) {
    var field = fields[i];
    if(field.isHyperlink && field.hyperlinkUri)
See Also