diff --git a/spiffworkflow-frontend/src/themes/carbon/BaseInputTemplate/BaseInputTemplate.tsx b/spiffworkflow-frontend/src/themes/carbon/BaseInputTemplate/BaseInputTemplate.tsx index 0670c69d..9e71b921 100644 --- a/spiffworkflow-frontend/src/themes/carbon/BaseInputTemplate/BaseInputTemplate.tsx +++ b/spiffworkflow-frontend/src/themes/carbon/BaseInputTemplate/BaseInputTemplate.tsx @@ -90,7 +90,7 @@ export default function BaseInputTemplate< let errorMessageForField = null; if (rawErrors && rawErrors.length > 0) { invalid = true; - errorMessageForField = `${labelToUse} ${rawErrors[0]}`; + errorMessageForField = `${labelToUse.replace(/\*$/, '')} ${rawErrors[0]}`; } return ( diff --git a/spiffworkflow-frontend/src/themes/carbon/SelectWidget/SelectWidget.tsx b/spiffworkflow-frontend/src/themes/carbon/SelectWidget/SelectWidget.tsx index 4da66bc7..616b11a7 100644 --- a/spiffworkflow-frontend/src/themes/carbon/SelectWidget/SelectWidget.tsx +++ b/spiffworkflow-frontend/src/themes/carbon/SelectWidget/SelectWidget.tsx @@ -17,6 +17,7 @@ function SelectWidget({ onBlur, onFocus, uiSchema, + placeholder, rawErrors = [], }: WidgetProps) { const { enumOptions, enumDisabled } = options; @@ -44,12 +45,20 @@ function SelectWidget({ labelToUse = `${labelToUse}*`; } + let invalid = false; + let errorMessageForField = null; + if (rawErrors && rawErrors.length > 0) { + invalid = true; + errorMessageForField = `${labelToUse.replace(/\*$/, '')} ${rawErrors[0]}`; + } + return (