Versions Compared


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

For analytical purposes, it can be convenient to know when a form has been opened and when it has been submitted. By default, the DateTime of the submit is stored with the feedback. With the instructions in this article, it is also possible to add the DateTime when the form was opened.

Form builder

Step 1. Add a website data element

Add a website data element to your form. Name the JS variable to look for should be _mopinionOpens['formKey'] whereby you replace the formkey with the actual formkey of the form you want to collect the opening of the form timestamp for. Additionally you can give the variable another name to be displayed in the results. In this case it is renamed Start.


Step 2. Add a custom script

Add the script on to the form.

You can name the file whatever you like.

The file URL should be

Set the file scope to Outside and inside of form dialog.



If you like to collect the start date for other forms you apply the above steps to these forms as well.

Feedback details

In the feedback results the start date time will display as below.


Easy html macro
contentByMode{"html":"<div id=\"surveyContent\"></div>","javascript":"var confluenceData = {};\nvar pageId;\nvar pageTitle;\n\ntry {\n confluenceData = JSON.parse(;\n var pageId = confluenceData.options.productContext[''];\n var pageTitle = confluenceData.options.productContext['page.title'];\n} catch(e) {}\n\nvar src = '';\n\nvar vars = {\n key:'211a4fdb96626776846147095cc335b448e20458', \n domain:'', \n divName:'surveyContent', \n button:false, \n use_collect:false, \n useQuerySelectorAll:false\n};\n\nvar s = document.createElement('script');\ns.async = 'async';\ = '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":""}