From d7720e264355d281b8f832bbb098cdd9f67e58f2 Mon Sep 17 00:00:00 2001 From: Andrew Kingston Date: Mon, 13 Dec 2021 09:34:27 +0000 Subject: [PATCH] Expose whole form value as a data binding --- packages/client/manifest.json | 4 ++++ packages/client/src/components/app/forms/InnerForm.svelte | 1 + 2 files changed, 5 insertions(+) diff --git a/packages/client/manifest.json b/packages/client/manifest.json index 1c40f389e8..1e9805bfa3 100644 --- a/packages/client/manifest.json +++ b/packages/client/manifest.json @@ -1837,6 +1837,10 @@ { "type": "static", "values": [ + { + "label": "Value", + "key": "__value" + }, { "label": "Valid", "key": "__valid" diff --git a/packages/client/src/components/app/forms/InnerForm.svelte b/packages/client/src/components/app/forms/InnerForm.svelte index 5836b6ae9c..47bc717d92 100644 --- a/packages/client/src/components/app/forms/InnerForm.svelte +++ b/packages/client/src/components/app/forms/InnerForm.svelte @@ -59,6 +59,7 @@ ...formValue, // These static values are prefixed to avoid clashes with actual columns + __value: formValue, __valid: valid, __currentStep: $currentStep, __currentStepValid: $currentStepValid,