→Writing your own form definitions: More detail of what the attributes mean and where they will turn up.
The <code>forms</code> element contains a number of <code>form</code> elements, each representing a form definition. The form start-tag contains 4 attributes:
* <code>id</code> : A unique code to identify the form definition.* <code>type</code>: The type of the event created by the form editor. This
is the XML representation of an EventType.* <code>title</code> : A description of the form.* <code>date</code> : An optional date in a Gramps date format. This is only useful for census definitions.
<form id='UK1841' type='Census' title='1841 UK Census' date='6 Jun 1841'>
The form is divided into sections which describe the information that needs to be captured for people performing a given role in the event. Each form element should contain at least one section element. The <code>section</code> start-tag
contains 3 attributes:
* <code>role</code> : The role that people in this section perform in the event. This
is the XML representation of an EventRoleType.
* <code>type</code> : The type of section. This defines how a section is displayed and people are selected. Allowed values are: '<code>person</code>' for a single person, '<code>multi</code>' for one or more people, or '<code>family</code>' for two people selected by a family.
* <code>title</code> : An optional title which will be used to describe the section.
A column element contains:
* An <code>_attribute</code> element. This contains the key used to store column information in the attributes of event reference objects within the Gramps database. Once defined this text must not be changed.* An optional <code>_longname</code> element. This contains a fuller description of the column
that is used in the tooltips in the editor.* A <code>size</code> element. This contains the size of the column in the census report. It is a percentage of the page width. The sum of all size elements in a definition should total 100%.