diff --git a/apps/jingrow/frontend/src/core/features/form_builder/store.js b/apps/jingrow/frontend/src/core/features/form_builder/store.js index 5afcc35..c43a7d2 100644 --- a/apps/jingrow/frontend/src/core/features/form_builder/store.js +++ b/apps/jingrow/frontend/src/core/features/form_builder/store.js @@ -87,7 +87,7 @@ export const RESTRICTED_FIELDS = [ export const DEFAULT_PAGEFIELD_PROPERTIES = [ // Label and Type section { fieldname: "label", label: t("Label"), fieldtype: "Data" }, - { fieldname: "fieldtype", label: t("Field Type"), fieldtype: "Select", options: ALL_FIELDTYPES.join("\n") }, + { fieldname: "fieldtype", label: t("Field Type"), fieldtype: "Select", options: [...ALL_FIELDTYPES, ...LAYOUT_FIELDS].join("\n") }, { fieldname: "fieldname", label: t("Fieldname"), fieldtype: "Data" }, { fieldname: "precision", label: t("Precision"), fieldtype: "Select", options: "\n0\n1\n2\n3\n4\n5\n6\n7\n8\n9", depends_on: "eval:in_list(['Float', 'Currency', 'Percent'], pg.fieldtype)" }, { fieldname: "length", label: t("Length"), fieldtype: "Int", depends_on: "eval:in_list(['Data', 'Link', 'Dynamic Link', 'Password', 'Select', 'Read Only', 'Attach', 'Attach Image', 'Int'], pg.fieldtype)" },