diff --git a/spiffworkflow-frontend/src/rjsf/custom_widgets/NumericRangeField/NumericRangeField.tsx b/spiffworkflow-frontend/src/rjsf/custom_widgets/NumericRangeField/NumericRangeField.tsx index 00a5e969..6152ac0e 100644 --- a/spiffworkflow-frontend/src/rjsf/custom_widgets/NumericRangeField/NumericRangeField.tsx +++ b/spiffworkflow-frontend/src/rjsf/custom_widgets/NumericRangeField/NumericRangeField.tsx @@ -40,6 +40,7 @@ export default function NumericRangeField({ rawErrors = [], formData, registry, + required, }: FieldProps) { const commonAttributes = getCommonAttributes( label, @@ -61,7 +62,7 @@ export default function NumericRangeField({ if (numberString) { return numberString.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ','); } - return '0'; + return ''; }; const parseNumberString = (numberString: string) => @@ -102,7 +103,9 @@ export default function NumericRangeField({ return (
-
{commonAttributes.label}
+
+ {required ? `${commonAttributes.label} *` : commonAttributes.label} +
{description && (
onChangeLocal('max', values)} - defaultValue="0" invalid={commonAttributes.invalid} />