Versions Compared

Key

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

...

The trigger has the possibility to combine multiple conditions with AND and/or OR statements.

Example

We will use an example to explain how the operators and statements can be used. Suppose your website places a cookie with the name color, which can have the values red, white, blue, or light blue. Also, a cookie with the name figure which can have the values circle, or square can be placed.

...

Use this operator if you want to show a form when a specific cookie is present regardless of its value. E.g. if the cookie color is placed in the visitor’s browser.

...

does not exists

contains

matches exactly

does not contain

, set the condition to color exists to trigger the form. The condition does not require a value.

...

In our example, the condition will evaluate to true if the cookie color is present.

does not exists

Use this operator if you want to show a form when a specific cookie is not present regardless of its value. E.g. if the cookie color is not present in the visitor’s browser, set the condition to color does not exist to trigger the form. The condition does not require a value.

...

In our example, the condition will evaluate to true if the cookie color is not present.

contains

Use this operator if you want to show a form when a specific cookie has a value that contains a string. E.g. if the value of the cookie color in the visitor’s browser has a value that contains the string blue, set the condition to color contains blue to trigger the form.

...

In our example, the condition will evaluate to true if the value of the cookie color is blue or light blue.

matches exactly

Use this operator if you want to show a form when a specific cookie has a specific value. E.g. if the value of the cookie color in the visitor’s browser has the value red, set the condition to color matches exactly red to trigger the form.

...

In our example, the condition will evaluate to true if the value of the cookie color is red.

does not contain

Use this operator if you want to prevent a form from showing when a specific cookie has a value that contains a string. E.g. if the value of the cookie color in the visitor’s browser has a value that contains the string light, set the condition to color does not contain light to prevent the form from triggering when the value is light blue.

In our example, the condition will evaluate to true if the value of the cookie color is red.

and

or

and & or

Show based on JavaScript variables on the page

Show based on HTML elements on the page

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:'c004128f86438276805d25759a236cc56a170dd5', \n domain:'demo.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":""}