Embedded partial survey in the website and after redirect it | XM Community
Skip to main content
I want to embedded my survey in a website, and I have to use the iframe. My the problem is that I want to show only the first two questions in the iframe and after redirect the user to complete the survey in a new page. Usualy the iframe show the entire survey, how can I show only two questions and after when user clicks send him to complete the survey?
@mapariel I suggest placing the first two questions in a survey by itself then when that block is complete redirect the user to another survey with the additional questions.
@"w.patrick.gale" thank you for your sugestion. I tried it, but the second survey started in the same iframe, there is way to the second survey starts in a new tab?



And there isn´t other way to use only one survey for it?
@mapariel Where are you performing the redirect, or I should say what method are you using? If you are not using an HTML link like one below where you can specify the target then a survey End of Survey redirect or similar will keep you within the iframe.



<a href="https://www.qualtrics.com/community/" target="_blank">link out of iframe</a>
@"w.patrick.gale" I´m redirect the second survey in the qualtrics at the end survey.

the first survey (with 2 questions) i´m using the code below, and it´s fine.



``<iframe src="https://mysurvey.link" height="500" width="600"></iframe>``



I don´t know how I could use the code you sugested to redirected the link of the bigger survey.
There is no easy way to really do this. You need to be familiar with a number of different components to pull this off. This may help if you want to use a javascript method but I wouldn't suggest it:

https://stackoverflow.com/questions/37009805/open-iframe-source-in-new-tab



For simplicity I would suggest taking a screenshot of the first two questions in the survey and post that to your website with some tagline text like 'Take the survey' and link that and the image to the actual survey (I only say this if you are wanting to give the user some 'visual' and not simply a link to the survey). Save yourself the trouble of trying to redirect out of an iframe go directly to the survey.

Leave a Reply