From 95c9fc400c699110fb03ea1a6b99563818c0e41c Mon Sep 17 00:00:00 2001 From: Jo Humphrey <31373245+jamdelion@users.noreply.github.com> Date: Fri, 1 Nov 2024 11:38:04 +0000 Subject: [PATCH] Put bopspayload function back in doc --- editor.planx.uk/docs/adding-a-new-component.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/editor.planx.uk/docs/adding-a-new-component.md b/editor.planx.uk/docs/adding-a-new-component.md index 1b0fb90a26..6335e1ccd2 100644 --- a/editor.planx.uk/docs/adding-a-new-component.md +++ b/editor.planx.uk/docs/adding-a-new-component.md @@ -143,3 +143,17 @@ If/how should this component appear in a Review component: [TYPES.SetValue]: undefined, ``` +3. In `planx-core` - `src/export/bops/index` + +If/how should this component be formatted in Send data formats such as BOPS? + +```typescript +function isTypeForBopsPayload(type?: TYPES) { + switch (type) { + // ... + case TYPES.SetValue: + return false; + // ... + } +} +``` \ No newline at end of file