Content

Creating Forms

Form Builder Frames

Object Tree

Editing Frame

Overview

Menus

Pages

Edit

Insert

View

Format

Table

Toolbar

 

Related Form Builder Documentation

 

Creating Forms

Top ../images/arwup.gif (846 bytes)

To create a Form, begin by accessing the Form Builder page:

1. Open the Form List page (Lab Admin → eForms → Form Definitions), then click "Add". This opens the Form Maintenance page.
2. In the Form Maintenance page, click the Form Builder button. This opens the Form Builder.

 

Form Builder Frames

Top ../images/arwup.gif (846 bytes)
Frame Description
Editing Frame
(right)
Area where you layout the Form and insert Objects into it.
Properties Frame
(lower left)
Lets you view and set properties of one or more Objects selected in the Editing frame. Ctrl-click to select multiple objects.
Objects Frame
(upper left)
Shows hierarchies of Objects in the Editing frame, and lets you perform operations on the Objects.

 

Object Tree

Top ../images/arwup.gif (846 bytes)

These types of Objects can be placed on the Form, along with definitions of their properties and behaviors:

Datasources
If the Form Type is "Worksheet", Data Sources let you bind Fields to actual records in the database. See eForm Worksheet Principles.
Fields
These are typically input fields based on HTML input tags, with properties that define display, operation, and processing capabilities.
Groups
Related Fields can be placed into one or more Groups that can be hidden or disabled, and have their own validation rules.
Sections
A Section represents an HTML div, table or table row on the form. Sections can be hidden, disabled, or be made repeatable to allow dynamic forms (similar to JavaScript swaps).
Elements
An Element is an object with dynamic properties (such as a hyperlink that can be shown or hidden).
Pages
A Form can have multiple Pages.

The Objects frame shows a tree view of these Objects (below). The tab order of Fields in the Form is defined by the order of these Fields in the Object frame.

Objects Identified by...
Data Sources Worksheet Type (see eForm Worksheet Principles).

Fields

All Fields:

Fields (n)

where

n = Number of Fields on the Form.

Each Field:

Id_Type (n)

where

Id = Identifier of the Field.
Type = Data Type of the Field.
n = Number of Labels associated with this Field.

Each item associated with a Field:

Id_Type (n)

where

Id = Identifier of the item.
Type = Data Type of the item.
n = Number of other items associated with this item.

Groups

All Groups:

Groups (n)

where

n = Number of Groups on the Form.

Each Group:

Id (n)

where

Id = Identifier of the Group.
n = Number of items associated with the Group.

Each item associated with a Group:

Id (n)

where

Id = Identifier of the item.
n = Number of other items associated with this item.

Sections

All Sections:

Sections (n)

where

n = Number of Sections on the Form.

Each Section:

Id (n)

where

Id = Identifier of the Section.
n = Number of items associated with the Section.

Each item associated with a Section:

Id (n)

where

Id = Identifier of the item.
n = Number of other items associated with this item.

Elements

Each Element:

Id (n)

where

Id = Identifier of the Element.
n = Type of Element.
Pages Clicking a Page puts the focus on that Page and renders the Page properties.

The Page title is shown next to the Page.

 

Editing Frame

Top ../images/arwup.gif (846 bytes)

Overview

 

The Editing frame uses the Formatted Text Editor based on the Ephox TinyMCE HTML editor.

Menus

 

Pages

Add Page Inserts a new Page:
Page Size
Size Size of the printed page.

If the desired size is not listed, specify custom settings below.

Custom WidthWidth of the page (with units).
Custom HeightWidth of the page (with units).
Margin Bottom

Margin Right

Margin Top

Margin Left

Margins of the printed page (in same units as Page Size).
Edit Page Lets you edit the page characteristics specified by Add Page (above).
Remove Page Deletes the current Page. You cannot delete the first Page.

Edit

Undo Reverses changes made to text and Field properties.
Redo Repeats changes made to text and Field properties that were reversed by "Undo".
Cut

Copy

Cuts/Copies the selected item.

Copying or cutting a Field maintains the Field properties.

Paste Pastes the selected HTML.
Paste as text Pastes unformatted text.
Select All Selects all items.

Insert

Insert/edit link Inserts or edits a hyperlink anchor tag:
URL LabVantage URL (Request Controller command).
Text to displayText shown for the hyperlink. The style of the hyperlink is blue underlined text.
titleText displayed on the Tooltip.
TargetTarget browser window. Choices are "None" (current window) or "New Window".
Anchor Inserts a named anchor tag:
NameHTML "name" attribute of the anchor tag.
Insert/edit image Opens a dialog that says you can drag over your image file or click to select a file from a Windows file dialog.
Normal Image 
SourceShows the data:url (inline) image URL generated by TinyMCE.
Image descriptionText displayed on the Tooltip.
DimensionsWidth and height of the image in pixels. Leave blank for auto-sizing.
Constrain proportions When checked, the original aspect ratio is preserved when resizing. When not checked, the aspect ratio can be changed when resizing.

Clicking an image displays a shortcut toolbar with these buttons:

Rotate
Counterclockwise

Rotates the image 90 degrees counterclockwise.

Rotate
Clockwise

Rotates the image 90 degrees clockwise.

Flip
Vertically

Overturns the image 180 degrees about the vertical axis.

Flip
Horizontally

Overturns the image 180 degrees about the horizontal axis.

Edit
Image

Opens the TinyMCE image editor. See https://www.tinymce.com/docs/demo/image-tools/.

Insert Drawing

Opens the TinyMCE drawing plugin, which offers basic artwork tools similar to a very simple vector drawing app.

Image Options

Opens the same dialog as Insert/edit image.

Promote
To Element

See Form Builder Elements.

Revert To Original

Restores the image as it was before editing.
Horizontal line Inserts an <hr /> tag (horizontal rule).
Special character Opens a dialog from which you can choose characters other than alphanumeric.
Insert/edit panel Inserts or edits an HTML div:
div
WidthWidth of the div in pixels. Leave blank for auto-sizing.
HeightHeight of the div in pixels. Leave blank for auto-sizing.
Border WidthCSS value for the width of the border.
Border styleCSS border style (None, Dotted, Dashed, Solid, Double, Groove, Ridge, Inset, Outset).
Border ColorCSS value for the color of the border.
Content EditableWhen checked, contents of the div are editable in the Form Builder. When not checked, the contents of the div are read-only.

 

Clicking a div displays a shortcut toolbar with these buttons:

Make div
Section

See Form Builder Sections.

Save As
Formlet

See Insert Formlet and Form Builder Sections.

Refresh
Formlet

See Insert Formlet.

Lock div
Section

If the div has been made a Section (using "Make div Section" above), this prevents editing the content of the div. This overrides the "Content Editable" property.

Unlock div
Section

If the div has been made a Section (using "Make div Section" above), this allows editing the content of the div. This overrides the "Content Editable" property.
Insert/edit Group Box Inserts an HTML fieldset:
Fieldset
LegendFieldset legend.
TipText displayed on Tooltip.
WidthWidth of the fieldset in pixels. Leave blank for auto-sizing.
HeightHeight of the fieldset in pixels. Leave blank for auto-sizing.
Insert/edit Button Inserts an HTML button:
General
TextText displayed on the button.
ColorColor of the button.
Section
Section IdIdentifier os the Section affected by an onClick event.
Action"Add Section" and "Delete Section" adds or removes the Section onClick.
Script
ScriptJavaScript to execute onClick.

There are no properties in the lower left frame for Buttons.

Clicking a button displays a shortcut toolbar with these buttons:

Promote
To Element

See Form Builder Elements.
Insert HTML Inserts HTML content into the Form.

The shortcut toolbar will be whatever the Form Builder can provide for the rendered HTML. For example, if the HTML builds a table, you will get the Table shortcut toolbar when you click the table.

Import From Word Opens a dialog that says you can drag over your file or click to select a file from a Windows file dialog.

This uses the same shortcut toolbar as the Insert/edit panel menu item.

 

View

Visual Aids Shows/hides visual boundary elements such as table borders.

 

Format

Applies formatting to the selected text:

Bold   Strikethrough
Italic   Superscript
Underline   Subscript
Formats  
headings Allows selection of standardized heading styles (similar to Microsoft Word headings).
Inline Applies inline HTML element styles (Bold, Italic, Underline, Strikethrough, Superscript, Subscript, and Code brackets).
Blocks Applies block HTML element styles (Paragraph, Blockquote, div, and Pre).
Alignment Aligns the selected object with respect to the page (Left, Center, Right, and Justify).
Clear formatting Clears formatting applied in the session.

 

Table

Insert Table Opens a graphical grid that lets you click and drag to specify the number of rows and columns.
Table properties Determines table properties for the table that has focus:
General
WidthWidth in pixels or percent (leave blank for auto).
HeightHeight in pixels (defaults to auto).
Cell spacingCell spacing.
Cell paddingPadding for all cells.
AlignmentNone, Left, Center, Right.
ClassOffers predefined CSS classes to be applied to the table formatting.
Advanced
styleCSS property-value pairs to apply as custom styles.
Border colorColor of the table border.
Background colorBackground color of the table.

Clicking within a table displays a shortcut toolbar with these buttons:

Table
Properties

Opens the Table properties dialog as described above.

Delete
Table

Deletes the entire table.

Insert Row
Before

Inserts a row above the selected row.

Insert Row
After

Inserts a row beneath the selected row.

Delete
Row

Deletes the selected row.

Insert Column
Before

Inserts a column to the left of the selected column.

Insert Column
After

Inserts a column to the right of the selected column.

Delete
Column

Deletes the entire column.

Make Table
Section

See Form Builder Sections.

Make Row
Section

See Form Builder Sections.
Table Layout Allows table column widths to be set to fixed values or auto-sized.

To set column widths to fixed values, check "Fix Table Layout", then specify column widths using the "Cell → Cell Properties" menu item. To auto-size columns, uncheck "Fix Table Layout".

Delete table Deletes the table that has focus.
Cell Determines cell properties for the cell that has focus:
Cell Properties Determines cell formatting.
General
WidthCell width in pixels or percent (leave blank for auto).
HeightCell height in pixels (leave blank for auto).
Cell Type None applies no specific formatting.

Cell applies no specific formatting.

header cell makes text bold.

Scope Determines the scope of properties (None,Row, Column, Row group, Column group).
H Align Determines horizontal alignment within the cell:

None applies no specific formatting.

Left, Center, and Right align the cell content accordingly.

V Align Determines vertical alignment within the cell:

None applies no specific formatting.

Top, Middle, and Bottom align the cell content accordingly.

Advanced
styleCSS property-value pairs to apply as custom styles.
Border colorColor of the cell border.
Background colorBackground color of the cell.
Merge cellsMerges the selected cells according to the specified number of rows and columns.
Split cellSplits the selected cell.
Row Determines row properties for the row that has focus:
Insert row before Inserts a row before.
Insert row afterInserts a row after.
Delete rowDeletes the row.
Row properties Determines row formatting.
General
Row type Row formatting type (header, body, Footer).
Alignment Alignment within row (None, Left, Center, Right).
HeightHeight in pixels (defaults to auto).
Advanced
styleCSS property-value pairs to apply as custom styles.
Border colorColor of the row border.
Background colorBackground color of the row.
Cut rowCuts the row.
Copy rowCopies the row.
Paste row beforePastes the row above the row that has focus.
Paste row afterPastes the row below the row that has focus.
Column Determines column properties for the column that has focus:
Insert column before Inserts a column to the left of the column that has focus.
Insert column afterInserts a column to the right of the column that has focus.
Delete columnDeletes the column.

 

Toolbar

 

Add Page

Performs the Add Page menu operation.

Restore last draft

Uses the TinyMCE autosave plugin to restore the last draft of the Form.

For more information, see the TinyMCE documentation at http://archive.tinymce.com/wiki.php/Plugin:autosave.

Undo

Reverses changes made during the current editing session.

Redo

Repeats changes that were reversed by "Undo".

Bold

Applies bold formatting to the selected text.

Italic

Applies italic formatting to the selected text.

Underline

Underlines the selected text.

Align left

Left-aligns the selected object with respect to the page.

Align center

Centrally-aligns the selected object with respect to the page.

Align right

Right-aligns the selected object with respect to the page.

Justify

Justifies the selected object with respect to the page.

Insert/edit link

Performs the same operation as the Insert/edit link menu item.

Insert/edit image

Performs the same operation as the Insert/edit image menu item.

Insert drawing

Opens the TinyMCE drawing plugin, which offers basic artwork tools similar to a very simple vector drawing app.

This uses the same shortcut toolbar as the Insert/edit image menu item.

Horizontal line

Performs the same operation as the Horizontal line menu item.

Special character

Performs the same operation as the Special character menu item.

Insert button

Performs the same operation as the Insert/edit Button menu item.

Font Family

Offers the TinyMCE default fonts (see https://www.tinymce.com/docs/configure/content-formatting/#font_formats.

Font Sizes

Offers the TinyMCE default font sizes (see https://www.tinymce.com/docs/configure/content-formatting/#font_formats.

Text color

Determines the color of the selected text.

Background color

Determines the background color beneath the selected text.

Bulleted list

Inserts an HTML bulleted list with a choice of bullet styles: Default (same as Disc), Circle, Disc, and Square.

Numbered list

Inserts an HTML numbered list with a choice of numbering styles: Default (Arabic), Lower Alpha, Lower Greek, Lower Roman, Upper Alpha, Upper Roman.

Decrease indent

Outdents the level of the selected object (defaults to 30px).

Increase indent

Indents the level of the selected object (defaults to 30px).

LabVantage Fields

Inserts a LabVantage Field. See Form Builder Fields.

Insert Controlled Field

Inserts a predefined Field Definition. The Edit style depends on the type of Field.

Insert Label

See Form Builder Fields → About Labels.

Insert Formlet

Opens a lookup that lets you add a predefined Formlet Definition to the Form. Formlets are added as Sections.

Select & ReturnInserts the selected Formlet. Use this to insert an explicit Version.
Select Current & ReturnInserts the Current Version of the selected Formlet.

The Version used is saved in the Document.

You are then asked how you want to import the Formlet:

Insert
Adds a copy of the Formlet to the Form.
If you change the Formlet Definition, the change will not be reflected in the Form when the Document is subsequently rendered in the eForm Manager.
The value of the "By Reference" property is set to "No".
By Reference
Adds the Formlet as a reference link to the Formlet Definition.
If you change the Formlet Definition, the change will be reflected in the Form when the Document is subsequently rendered in the eForm Manager.
The value of the "By Reference" property is set to "Yes".

Whether "Editable in Form" is checked or unchecked (in the Formlet Definition), you can edit the Formlet to change the Formlet Definition,
in which case the Formlet will be updated in the Form. "Refresh Formlet" updates the Formlet. "Save As Formlet" saves a copy of the Format with a different Identifier.

Options in the Formlet Definition determine if the Formlet is editable or can be bound to a Datasource (see eForm Worksheet Principles).

 

Related Form Builder Documentation

Top ../images/arwup.gif (846 bytes)

Form Builder tools are described by these documents:

Form Builder: Fields

Form Builder: Groups

Form Builder: Sections

Form Builder: Elements

Form Builder: Pages

Form Builder: APIs

Worksheets:

eForm Worksheet Principles

eForm Worksheet Advanced Concepts