From 7abcb198665944d032ea5faa04d52f8bd396d88d Mon Sep 17 00:00:00 2001 From: Vijay Kumar J Date: Wed, 17 Apr 2024 14:45:09 +0530 Subject: [PATCH] include eds type --- blocks/form/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/blocks/form/util.js b/blocks/form/util.js index 4ce5f06..6db9a38 100644 --- a/blocks/form/util.js +++ b/blocks/form/util.js @@ -75,7 +75,7 @@ export function createLabel(fd, tagName = 'label') { } export function getHTMLRenderType(fd) { - return fd?.fieldType?.replace('-input', '') ?? 'text'; + return fd?.properties?.edsType ? fd.properties.edsType : (fd?.fieldType?.replace('-input', '') ?? 'text'); } export function createFieldWrapper(fd, tagName = 'div', labelFn = createLabel) {