diff --git a/designer/client/field-edit.tsx b/designer/client/field-edit.tsx index e9d16d2b88..bded117a09 100644 --- a/designer/client/field-edit.tsx +++ b/designer/client/field-edit.tsx @@ -26,6 +26,7 @@ export function FieldEdit({ required = true, exposeToContext = false, allowPrePopulation = false, + allowPrePopulationOverwrite = false, disableChangingFromSummary = false, } = options; const isFileUploadField = selectedComponent.type === "FileUploadField"; @@ -228,37 +229,71 @@ export function FieldEdit({ {isListField && ( -
-
- - dispatch({ - type: Actions.EDIT_OPTIONS_ALLOW_PRE_POPULATION, - payload: e.target.checked, - }) - } - /> - - - {i18n("common.allowPrePopulationOption.helpText")} - + <> +
+
+ + dispatch({ + type: Actions.EDIT_OPTIONS_ALLOW_PRE_POPULATION, + payload: e.target.checked, + }) + } + /> + + + {i18n("common.allowPrePopulationOption.helpText")} + +
-
+
+
+ + dispatch({ + type: + Actions.EDIT_OPTIONS_ALLOW_OVERWRITE_FROM_QUERY_PARAM, + payload: e.target.checked, + }) + } + /> + + + {i18n("common.allowPrePopulationOverwriteOption.helpText")} + +
+
+ )}