Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Answer values of question elements cannot be collected via the API. These should be collected via field endpoints. For example, for the Thumbs element, you’ll get the response:

Code Block
{
      "report_id": 123,
      "dataset_id": 1234,
      "label": "What's your opinion on []?",
      "short_label": "THUMBS1",
      "key": "1234.THUMBS1.567a8910",
      "type": "thumbs"
  }

The key and label fields are needed to send the data via the post API. The possible values of the of the third desired field, value, does not return the field endpoint.

Code Block
{
    "key": "1234.THUMBS1.567a8910",
    "label": "What's your opinion on []?",
    "value": "positive"
}

Therefore, these values should be collected manually when a form is created, by, for example, sending several test items via the preview pages and then obtain the values from the responses.

Below you can find the possible values for the different question elements.

Rating

  • Stars: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

  • Numeric: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

  • Bar: 1, 2, 3, 4, 5

  • Emoji: 1, 2, 3, 4, 5

NPS
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10

CES
1, 2, 3, 4, 5

GCR
yes, partially, no

Thumbs
positive, negative


Easy html macro
theme{"label":"solarized_dark","value":"solarized_dark"}
contentByMode{"html":"<div id=\"surveyContent\"></div>","javascript":"var confluenceData = {};\nvar pageId;\nvar pageTitle;\n\ntry {\n confluenceData = JSON.parse(parent.window.name);\n var pageId = confluenceData.options.productContext['page.id'];\n var pageTitle = confluenceData.options.productContext['page.title'];\n} catch(e) {}\n\nvar src = 'https://collect.mopinion.com/assets/surveys/2.0/js/survey.min.js';\n\nvar vars = {\n key:'211a4fdb96626776846147095cc335b448e20458', \n domain:'app.mopinion.com', \n divName:'surveyContent', \n button:false, \n use_collect:false, \n useQuerySelectorAll:false\n};\n\nvar s = document.createElement('script');\ns.async = 'async';\ns.id = 'mopinionFeedbackScript';\ns.src = src;\ns.onload = s.onreadystatechange = function() {\n if (!s.readyState || s.readyState === 'loaded' || s.readyState === 'complete') {\n try {\n srv.loadSurvey(vars);\n } catch (e) {}\n }\n}\ndocument.head.appendChild(s);","css":""}