Versions Compared

Key

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

Adjusting an email snippet

  • Open the feedback form in Mopinion that you use in your email (that contains an email snippet) 

  • Go to Step 1: Build and select the question element that contains the email snippet.

  • Copy the code.

  • Replace the snippet code in your email with the code you just copied.

  • Open the feedback form in Mopinion that you link to the email.

  • Go to step ‘DEPLOY’ and go to 'Share form'.

Note

Replace {UNIQUE_SHORT_ID} and {YOUR_DOMAIN} with your own unique values.

  • The {UNIQUE_SHORT_ID} in the mopin.io URL and {UNIQUE_FORM_ID} in your own domain URL are NOT the same.

  • Make sure that the query string (all values after the question mark '?') remain. Only replace the text before the question mark. 

For example, a form on the domain https://demo.mopinion.com:

Code Block
http://mopin.io/n/dNFd6hYbcs?smiley=5

is adjusted to:

https://demo.mopinion.com/survey/public/take-survey/18ae516a1ec94260a6a8e9c6c55b75377584d826?smiley=5


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":""}