Use existing 'Primary Contact' relationship type via FORM_CONTACT_RELATIONSHIP constant
This commit is contained in:
@@ -537,6 +537,17 @@ export const ACTIVITY_TYPE_NAME = "Check-in (organizing)";
|
||||
/** Stage-snapshot field on the activity (so the form's stage_at_submission writes here). */
|
||||
export const ACTIVITY_STAGE_FIELD = `${G0}.Stage`;
|
||||
|
||||
/**
|
||||
* RelationshipType.name_a_b for the relationship that links the form-filler
|
||||
* (Individual side) to the organization the form is about (Organization side).
|
||||
*
|
||||
* On `client.crm.fci.coop` we reuse the existing "Primary Contact"
|
||||
* relationship type (id 24) rather than introducing a dedicated
|
||||
* "Primary Form Contact" type. If you change this, also update the docs in
|
||||
* the parent repo's spec.
|
||||
*/
|
||||
export const FORM_CONTACT_RELATIONSHIP = "Primary Contact";
|
||||
|
||||
/** All distinct option_group_ids referenced by fields in this form. */
|
||||
export const optionGroupIds = Array.from(
|
||||
new Set(
|
||||
|
||||
Reference in New Issue
Block a user