Picture of Matt Leathes
Re: SubmitAll
by Matt Leathes - Thursday, 25 March 2021, 10:36 AM
 

Adapt FW v5.12.1 is out now by the way

Picture of K Edison
Re: SubmitAll
by K Edison - Thursday, 19 October 2023, 3:16 PM
 

Hi Matt,

I am using framework version 5.33.1 and trying to use the SubmitAll component. 

Can you tell me where exactly I should place this:  ,"_submitAll":{"_isEnabled": true,"_insertAfterBlock": ""}

article.json

[{"_id":"a-05","_parentId":"co-05","_type":"article","_classes":"","title":"a-05","displayTitle":"","body":"","instruction":""},

{"_id":"a-10","_parentId":"co-10","_type":"article","_classes":"","title":"a-10","displayTitle":"","body":"","instruction":""},

{"_id":"a-15","_parentId":"co-15","_type":"article","_classes":"","title":"a-15","displayTitle":"","body":"","_assessment":{"_isEnabled":true,"_id":"a-15","_suppressMarking":false,"_scoreToPass":75,"_correctToPass":75,"_isPercentageBased":true,"_includeInTotalScore":true,"_assessmentWeight":1,"_isResetOnRevisit":true,"_attempts":"infinite","_allowResetIfPassed":false,"_scrollToOnReset":false,"_banks":{"_isEnabled":true,"_split":"2,2","_randomisation":true},"_randomisation":{"_isEnabled":false,"_blockCount":1},"_questions":{"_resetType":"hard","_canShowFeedback":false,"_canShowMarking":false,"_canShowModelAnswer":false}},"_trickle":{"_isEnabled":false,"_button":{"_isEnabled":true,"startText":"Continue"}}},

{"_id":"a-20","_parentId":"co-15","_type":"article","_classes":"","title":"a-20","displayTitle":"","body":""}]

Also I installed it as a components and not extension, is this correct?

Thanks

Kelly

Picture of Ignacio Cinalli
Re: SubmitAll
by Ignacio Cinalli - Thursday, 19 October 2023, 3:51 PM
 

Hi Kelly, adapt-submitAll is an extension, you should add it in the extensions folder.
Then in the articles.json file you can add like this:

{ "_id": "a-15", "_parentId": "co-15", "_type": "article", "_classes": "", "title": "a-15", "displayTitle": "", "body": "", "_assessment": { "_isEnabled": true, "_id": "a-15", "_suppressMarking": false, "_scoreToPass": 75, "_correctToPass": 75, "_isPercentageBased": true, "_includeInTotalScore": true, "_assessmentWeight": 1, "_isResetOnRevisit": true, "_attempts": "infinite", "_allowResetIfPassed": false, "_scrollToOnReset": false, "_banks": { "_isEnabled": true, "_split": "2,2", "_randomisation": true }, "_randomisation": { "_isEnabled": false, "_blockCount": 1 }, "_questions": { "_resetType": "hard", "_canShowFeedback": false, "_canShowMarking": false, "_canShowModelAnswer": false } }, "_trickle": { "_isEnabled": false, "_button": { "_isEnabled": true, "startText": "Continue" } }, "_submitAll": { "_isEnabled": true, "_insertAfterBlock": "" } }
Picture of K Edison
Re: SubmitAll
by K Edison - Thursday, 19 October 2023, 4:43 PM
 

Hi Ignacio,

Thanks so much, I'll try that :)

Kelly