Hello,
I would like to add the “Host Taxon” field to the data entry form for the Fungi/Lichen Collection Object Types (COTs) in our Botany discipline.
Is there a post or guide that explains how to configure and display “Host Taxon” on the COT form in Specify 7? Any pointers to relevant documentation or examples would be greatly appreciated.
A conditional form definition can be used to limit the Host Taxon relationship to Collection Object records with the Fungi/Lichen COT.
The first step is to configure the Host Taxon relationship. This entails adding the CollectionRelType form (if needed), creating a Collection Relation Type record for the new relationship, and modifying the form definition. The left side is the collection with the COT and the right side is the collection with the taxon tree of the host. The form definition modification step is more complex in this case since you want to limit the Host Taxon to only one COT in the left side collection.
Since the Host Taxon relationship is added to the Collecting Event Attribute form, you should create two form definitions for the Collecting Event table: one with Collecting Event Attribute and one without. XML for the CEAttribute definition:
In the Collection Object form definition, set up a conditional panel around the Collecting Event subview based on the COT name field. When the COT is Fungi/Lichen, the CE subview with CEAttribute should be shown. Conditional Form definitions are covered in Editing Forms in Specify: Conditional Rendering and the Advanced Specify Customization Webinar.