Accessing a form
You can access existing forms in a database as follows:
- The Forms property of NotesDatabase returns an array of NotesForm objects.
- The GetForm method of NotesDatabase returns a named NotesForm object.
The NotesForm class provides access to the following form properties:
| Property |
Data type |
Description |
|---|---|---|
| Array of strings |
(Read-only) Aliases of the form |
|
| Array of strings |
(Read-only) Names of all the fields of the form |
|
| Array of strings |
(Read-write) Contents of the $FormUsers field |
|
| String |
(Read-only) The HTTP URL of a form. |
|
| Boolean |
(Read-only) True if the form is a subform |
|
| String |
(Read-only) Name of the form |
|
| String |
(Read-only) The Notes URL of a form. |
|
| NotesDatabase |
(Read-only) Database that contains a Form object. For COM only. |
|
| Boolean |
(Read-write) Protects $Readers items from being overwritten by replication |
|
| Boolean |
(Read-write) Protects $FormUsers items from being overwritten by replication |
|
| Array of strings |
(Read-write) Contents of the $Readers field |
In addition, you can get the type of a field on the form with GetFieldType. See Type in NotesItem for the valid field types. You can remove an existing form from the database with Remove method.