FormBase::AppendFormField (open)

Append a new field to the form

Syntax

LOADLIB "mod::publisher/lib/forms/base.whlib";

OBJECT FUNCTION AppendFormField(OBJECT parent, STRING type, STRING name, RECORD options)

Parameters

OBJECT parent

Owner of the new field. DEFAULT OBJECT if the field will be a toplevel field

STRING type

Type of the new field

STRING name

Field name to use in the form. If not specified a random name is set.

RECORD options

Options

BOOLEAN ishidden

Creates a hidden field that will still be visible for results, merging and conditions just like static fields

RECORD match

Settings needed to select the proper field subtype

STRING valuetype

Requests a specific valuetype from a (shorthand for [match := [valuetype := "..." ]])

Return value

OBJECT

The newly created component