Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

 

 

Section
Column

Forms can be initialized by an XML document. This is most commonly done when the form is created from an XSD data source but can also be used with forms created from ' palette controls. The most common method is to connect the XML document to the form via the form's doc action manually set document URls wizard.

Column
width240px

On this page:

Table of Contents
maxLevel1

...

Warning

The XML document must also use UTF-8 format encoding.

Time, Date/Time Controls

Notice in the XML document example below that the time is proceeded by a capital  "T" (Time Zone) and followed by a "Z" (UTC timezone). It is highly recommended to supply the timezone when using an XML document to initialize a form with time or date/time controls. Time and Date/Time controls can be initialized in a form with data provided by an XML document. 

Warning

You must specify the _formTz=<tz> parameter, appended to the share URL when initializing a form from an XML init document, the _data parameter or a business rule that uses the rule identifier,form.load. Successful initialization cannot be guaranteed if the &_formTz parameter is not supplied. Refer to Initializing Forms with Data for the details.

Here is an example of XML code that can be used to initialize a form with date, time and date/time controls.  The data will be converted to the timezone of the browser and displayed in the form accordingly if the timezone is provided in the XML document. Initialization data will not be converted and will display as is on the form if the timezone is not provided. See Initializing Forms with Data for more information. Notice in the XML document example below that the time is proceeded by a capital  "T" (Time Zone) and followed by a "Z" (UTC timezone).

Code Block
<?xml version="1.0" encoding="UTF-8"?>
 <p0:default_format xmlns:p0="http://www.frevvo.com/schemas/_1gjfsLVcEeGncZR5RoaQbQ">
    <date>2012-07-09</date>
    <time>14:00:00Z</time>
    <datetime1>2012-07-09T14:00:00Z</datetime1>
    <datetime2>2012-07-09T14:00:00Z</datetime2>
 </p0:default_format>

The data will be converted to the timezone of the browser and displayed in the form accordingly if the timezone is provided in the XML document. Initialization data will not be converted and will display as is on the form if the timezone is not provided. 

Warning

If your form contains time, datetime controls, you must specify the _formTz=<tz> appended to the share URL when initializing a form from an XML init document, the _data parameter or a business rule that uses the rule identifier,form.load. Successful initialization cannot be guaranteed if the &_formTz parameter is not supplied. Refer to Initializing Forms with Data for the details.

Navigate Time data in a form is always converted from the browser's timezone to a valid UTC format when posted in the form XML document in the submissions database. You may see the time in UTC format with a trailing "Z" (UTC) time or the time value plus or minus the UTC offset. Refer to Viewing XML Documents for more information. Navigate to View/Edit Submissions for more information on the Submissions Database and the XML document. 

...