diff --git a/packages/react-sdk-components/src/components/field/ScalarList/ScalarList.tsx b/packages/react-sdk-components/src/components/field/ScalarList/ScalarList.tsx
index 3a299573..03563c46 100644
--- a/packages/react-sdk-components/src/components/field/ScalarList/ScalarList.tsx
+++ b/packages/react-sdk-components/src/components/field/ScalarList/ScalarList.tsx
@@ -49,7 +49,7 @@ export default function ScalarList(props: ScalarListProps) {
); // 2nd, 3rd, and 4th args empty string/object/null until typedef marked correctly as optional;
});
- if (['LABELS_LEFT', 'STACKED_LARGE_VAL', 'DISPLAY_ONLY'].includes(displayMode)) {
+ if (['LABELS_LEFT', 'STACKED_LARGE_VAL'].includes(displayMode)) {
return (
diff --git a/packages/react-sdk-components/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx b/packages/react-sdk-components/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx
index ccea3033..2f77a5b3 100644
--- a/packages/react-sdk-components/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx
+++ b/packages/react-sdk-components/src/components/template/SimpleTable/SimpleTable/SimpleTable.tsx
@@ -69,7 +69,7 @@ export default function SimpleTable(props: SimpleTableProps) {
const label = labelProp || propertyLabel;
const propsToUse = { label, ...getPConnect().getInheritedProps() };
- const isDisplayModeEnabled = displayMode === 'DISPLAY_ONLY';
+ const isDisplayModeEnabled = displayMode === 'LABELS_LEFT';
if (fieldMetadata && fieldMetadata.type === 'Page List' && fieldMetadata.dataRetrievalType === 'refer') {
const {
diff --git a/packages/react-sdk-components/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx b/packages/react-sdk-components/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx
index d495e90b..2b73bd66 100644
--- a/packages/react-sdk-components/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx
+++ b/packages/react-sdk-components/src/components/template/SimpleTable/SimpleTableManual/SimpleTableManual.tsx
@@ -92,7 +92,7 @@ export default function SimpleTableManual(props: PropsWithChildren
{
- if (files.length > 0 && displayMode !== 'DISPLAY_ONLY') {
+ if (files.length > 0 && displayMode !== 'LABELS_LEFT') {
const currentAttachmentList = getCurrentAttachmentsList(getAttachmentKey(valueRef), pConn.getContextName());
// block duplicate files to redux store when added 1 after another to prevent multiple duplicates being added to the case on submit
const tempFiles = files.filter(f => currentAttachmentList.findIndex(fr => fr.ID === f.ID) === -1 && !f.inProgress && f.responseProps);
@@ -416,7 +416,7 @@ export default function Attachment(props: AttachmentProps) {
{item.props.meta && {item.props.meta}
}
- {item.ID && (
+ {item.ID && displayMode !== 'LABELS_LEFT' && (
@@ -440,9 +440,11 @@ export default function Attachment(props: AttachmentProps) {
>
Download
-
+ {displayMode !== 'LABELS_LEFT' && (
+
+ )}
)}
@@ -456,7 +458,9 @@ export default function Attachment(props: AttachmentProps) {
return (
{label}
- {((files.length === 0 && allowMultiple !== 'true') || allowMultiple === 'true') && }
+ {((files.length === 0 && allowMultiple !== 'true') || allowMultiple === 'true') && displayMode !== 'LABELS_LEFT' && (
+
+ )}
{validatemessage !== '' ? {validatemessage} : ''}
{files && files.length > 0 && }