Reputation: 794
I'm trying to use a SurveyMonkey embedded survey in our website. I know we can pass custom variables such as username in the url using a Web Link Collector. However I don't see any articles about passing custom variables using an embedded survey. Is it even possible?
Or maybe someone could guide me how to achieve my goal with SurveyMonkey? Here is the scenario I would like to achieve.
Can SurveyMonkey do this?
Upvotes: 1
Views: 2196
Reputation: 794
I spoke to the SurveyMonkey help desk, and I was told that it is not possible to use custom variables in their embedded survey.
Upvotes: 1
Reputation: 51
I faced this same issue and struggled for a bit. For anyone facing this issue, the acceptable work around I was able to implement was answered here:
How to Pass Custom Values like Username or E-mail into SurveyMonkey
Basically, instead of creating an embed survey collector, you create a weblink collector. You then create an iframe
and set the src
to be the given link which will accept your custom variable.
For example:
<iframe src="https://www.surveymonkey.com/r/ABCDEFG?CustomVariable=mycustvar"></iframe>
For fellow angular developers, if you are doing this and dynamically setting the [src]
, you will also need to use the DomSanitizer
to bypass security, though this may make your app susceptible to XSS attacks.
Upvotes: 1