dead-brownD
Refine2y ago
4 replies
dead-brown

Checked value for checkbox group

Hi i'm using refine to get a list from db and append it to a checkbox
<Form.Item
              label={t("proposaleComponent.superfoods")}
              name={"superfoods"}
            >
              <Checkbox.Group
                options={superFood}
                value={newOfferingComponent.superfoods}
                onChange={onSuperfoodsChange}
                className="grid grid-cols-3"
              ></Checkbox.Group>
            </Form.Item>

here is my code, I want when render, the checkbox group show selected item in a superfoods list from offering component. But it wasn't show.
can you help me to show the item that in a list?
Was this page helpful?