Step 1: Changes required in Editor:
A. To include Evaluable field.
Since SB-forms are being used to render the form fields in the editor, following changes are needed from below api
API driven form : /action/object/category/definition/v1/read?fields=objectMetadata,forms,name,label
...
Update Object category definition through postman Add new field under the framework details include the new field called evaluable
Code Block |
---|
{
"code":"evaluable",
"name":"Evaluable",
"label":"Evaluable",
"description":"Is Question is Evaluable",
"default":false,
"dataType":"boolean",
"inputType":"select",
"editable":true,
"required":false,
"visible":false,
"renderingHints":{
"class":"sb-g-col-lg-1 required"
},
"range":[
true,
false
]
} |
2. Code changes
a. Add question type you want to set evaluable as true in the editor.config.json
"evaluableQuestionSet": "PIAA Question Set",
b. Depends on type of question set user select from the dropdown [“PIAA Question set“, “Practice Question set“ …] set evaluable flag to true/false.
c. If the selected question set matches to configured question set the evalauble will be set to true otherwise false.