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) {