Checklist
The checklist methods allow you to open checklists, close them, and mark individual items as complete. All methods are available on window.USETIFUL.checklist.
start(checklistId)
Opens a checklist by its ID. The checklist ID is defined in the Guides and Surveys dashboard when creating or editing a checklist.
| Parameter | Type | Required |
|---|---|---|
checklistId | string | Yes |
close()
Closes the currently displayed checklist. If no checklist is open, this method has no effect.
done(rowNumbers, checklistId?)
Marks one or more checklist items as complete. Row numbers are 1-indexed, corresponding to the item positions defined in the checklist.
When checklistId is provided, the specified items are marked complete on that checklist. When omitted, the items are marked on the currently displayed checklist.
| Parameter | Type | Required |
|---|---|---|
rowNumbers | number[] | Yes |
checklistId | string | No |