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 parentOwner of the new field. DEFAULT OBJECT if the field will be a toplevel field
STRING typeType of the new field
STRING nameField name to use in the form. If not specified a random name is set.
RECORD optionsOptions
BOOLEAN ishiddenCreates a hidden field that will still be visible for results, merging and conditions just like static fields
RECORD matchSettings needed to select the proper field subtype
STRING valuetypeRequests a specific valuetype from a (shorthand for [match := [valuetype := "..." ]])
Return value
OBJECTThe newly created component