From 204d7e555885d6b7c2a3aefc65aaba44bc8915d9 Mon Sep 17 00:00:00 2001 From: robinvandermolen Date: Fri, 8 Nov 2024 12:33:38 +0100 Subject: [PATCH] :sparkles: [open-formulieren/open-forms#4813] Added prefill tab to number edit --- src/registry/number/edit.tsx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/registry/number/edit.tsx b/src/registry/number/edit.tsx index e2ad9f0b..dfcdaaa6 100644 --- a/src/registry/number/edit.tsx +++ b/src/registry/number/edit.tsx @@ -9,6 +9,7 @@ import { IsSensitiveData, Key, Label, + Prefill, PresentationConfig, Registration, SimpleConditional, @@ -58,6 +59,7 @@ const EditForm: EditFormDefinition = () => { + @@ -96,6 +98,11 @@ const EditForm: EditFormDefinition = () => { + {/* Prefill tab */} + + + + {/* Translations */} @@ -148,6 +155,11 @@ EditForm.defaultValues = { registration: { attribute: '', }, + prefill: { + plugin: '', + attribute: '', + identifierRole: 'main', + }, }; const DefaultValue: React.FC = () => {