Page 1 of 1
Adding Custom Field to Fact Type
Posted: 29 Jul 2016 09:34
by WeefordHoldcroft's
I have set up a fact type to record Trade Directory Information However in the list of fields I can add I cannot seem to add a Occupation field. This would be very useful as Trade Directories ie Whites have both address and occupation. Does anyone have a solution to this?
Many Thanks
Re: Adding Custom Field to Fact Type
Posted: 29 Jul 2016 10:34
by tatewise
Facts (like many things in FH) are restricted to the Gedcom Standard.
Have you created the Trade Directory fact as an Event or an Attribute?
An Attribute has all the Event fields of Date, Age, Place, Address, Note, etc, but also has a Value which is shown against its label on the Facts tab of the Property Box.
c.f. Education, Occupation, Possessions, Religion.
If you have defined it as an Event and want to change to an Attribute then you will also have to manage any Trade Directory facts you have already entered. If only a few, then delete them, delete the Event Fact Type, create Attribute Fact Type, and re-enter the data. If you have a large number of Trade Directory facts, then ask for advice about how to migrate them automatically.
If it is an Attribute already, then a popular way of adding meta-data such as Occupation is to use labelled Note text.
In the Note field add entries such as:
Directory: Whites
Occupation: Butcher
These can easily be handled using the =GetLabelledText(...) function.
Re: Adding Custom Field to Fact Type
Posted: 29 Jul 2016 15:57
by Jane
Personally when entering Trade directory entries, they typically generate a couple of facts, one for the occupation and one for a Residence or business address with a source to the actual directory, but you can select your preferred method.