Skip to content

Open-source manufacturing ERP, MES and QMS. Quoting, MRP, inventory, shop floor, quality and lot/serial traceability on one Postgres schema, with a REST API and MCP server. Self-host or use Carbon Cloud.

Improve custom field option button label

Claude2ea878194662
diff --git a/packages/form/src/components/Array.tsx b/packages/form/src/components/Array.tsx
index baa3f03601..fccd59f13e 100644
--- a/packages/form/src/components/Array.tsx
+++ b/packages/form/src/components/Array.tsx
@@ -77,7 +77,7 @@ const Array = forwardRef<HTMLInputElement, FormArrayProps>(
onClick={onAdd}
isDisabled={isDisabled || isReadOnly}
>
- New Option
+ {items.length > 0 ? "Add another option" : "Add option"}
</Button>
</VStack>
{error && <FormErrorMessage>{error}</FormErrorMessage>}