Skip to main content

Function: submitForGrading()

function submitForGrading(
context,
siteUrl,
activityId,
options?
): Promise<{
assignment: StudentAssignment;
changed: string;
}>;

Defined in: areas/assignments/student.ts:164

Submits the saved submission for grading, accepting the site's statement when it asks for one (acceptStatement, once the person agrees; a bare boolean as before 0.2 too); gives the assignment afterwards.

Parameters​

ParameterType
contextBrowserContext
siteUrlstring
activityIdnumber
options| boolean | { acceptStatement?: boolean; }

Returns​

Promise<{ assignment: StudentAssignment; changed: string; }>