Versions Compared

Key

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

Open the form with your own button

To open/show the form with with your own button or link you can use: 

...

This JavaScript function can be added as onas an on-click event, for example. 

...

Code Block
<a onclick="srv.openModal(true,'form-key')">feedback</a>

 

You  You need to specify it with the form key, which is the unique identifier for that particular feedback form. You can grab that key from the ‘Feedback forms’ page. Click on the icon with the three dots, and click on ‘Copy form key’.

 

...

For example, if the form key is 2a8f783514fa91e03666bbb8c444ac4a0b967074, then the full code for a link or button would be:

...

To check if it works you can also run the command from browser console (right-click: Inspect element , and enter the JavaScript function without the html HTML tags, so remove <a> and onclick ‘onclick’ event). Like this:

Code Block
srv.openModal(true,'2a8f783514fa91e03666bbb8c444ac4a0b967074')

 

Hide the Mopinion button

Then additionally, to hide the Mopinion button, go to the feedback form editor. (Replace "app" for your dedicated Mopinion subdomain if needed.)

https://app.mopinion.com/survey/manage -> Edit Form 

And then click the ‘DESIGN’ tab, next, ‘FORM’ and then to custom CSS. 

...