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
Opens a checklist by its ID. The checklist ID is defined in the Guides and Surveys dashboard when creating or editing a checklist.
Parameters
- checklistId string required
The checklist ID.
close
Closes the currently displayed checklist. If no checklist is open, this method has no effect.
done
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.
Parameters
- rowNumbers number[] required
1-indexed row numbers to mark complete.
- checklistId string optional
The checklist ID. When omitted, applies to the currently displayed checklist.