@warp-works/warpjs-survey-tool-plugin
v2.0.8
Published
Plugin to set up survey
Readme
Warpjs IPT Plugin
This plugin sets up the IPT questionnaire.
Configuration
Add the following to .warp-works-warpjsrc of your project:
{
plugins: [{
"name": "ipt",
"moduleName": "@warp-works/warpjs-ipt-plugin",
"path": "/ipt",
"type": "action",
"config": {
"glyphicon": "plane",
"label": "IPT Survey",
"schema": {
"questionnaire": "IPT",
"category": "CategoryQ",
"question": "DimensionQ",
"option": "OptionQ",
"attempt": "IPT_Attempt",
"imageLibrary": "IMGLIB",
"image": "Image",
"map": "Map",
"resultSet": "ResultSet",
"result": "Result",
"relevantHigh": "Relevant_If_High",
"relevantLow": "Relevant_If_Low",
"content": "Content"
}
}
}]
}schemais the bridge between IPT entities in studio and what is sent with HAL to the front end.questionnaireis for questionnairescategoryis for categoriesquestionis for questions and interim detail pagesoptionis for options for questionsattempis for attempts on a specific questionnaireimageLibraryis for the images associated with the questionnaire at the top levelimageis for the image associated with a category or quesitonmapis for the image mapping for an imageresultSetis for the result sets for the suggested readings sectionresultis for the individual resultrelevantHighis for the list of questions of relevance with emphasis on answers with higher positionsrelevantLowis for the list of questions of relevance with emphasis on answers with lower positionscontentis the associated content linked to a result
