On this Page

    _document.serializeForm

    (As of 3.1.002.03)

    Serialize this document to the file.

    Syntax

    _document.serializeForm(file)

    Parameters

    file specifies the output file. Should be an XATW file name.

    Returned Value 

    (As of 3.2.001.09) true if successful, false if an error occurred. 

    Description

    This function is not for everyday use but may be useful for advanced users in some specific scenarios.

    Your script might make any number of property changes to the form template DOM (like visibility, margins, etc.) Then you can call serializeForm(file) and it will write out the XATW with all of the current form DOM. In the context of this function it makes sense to modify the form DOM only up to and including the Start of each Document event. After that event, all your changes will be reflected in a document being generated, but not in the form template, although you may call this function on any event.