Answered

I want a specific survey to appear only for a certain subset of webpages.

  • 11 August 2023
  • 2 replies
  • 26 views

I want a specific survey to appear only for a certain subset of webpages.  Example: If a person searches for specific resource page, I only want the resource survey to appear on the resource page.  If the page contains */resource/* in the URL.  How can this be done?

icon

Best answer by mathio 16 August 2023, 10:41

View original

2 replies

Userlevel 7
Badge +5

Hi @Patrick OB Happy Monday! I hope you had a great weekend. Since we don’t offer this feature within our embed code, you would need to use custom code to create this effect. 

@mathio might have some suggestions for you!

Userlevel 7
Badge +5

Hello @Patrick OB 

you will need to implement this on your own. For example you can use a piece of JavaScript along with the Typeform Embed SDK.

For example if you want to show a popover embed you could use this JavaScript code in your page:

if (window.location.pathname.match('/resource/')) {
window.tf.createPopover('<form-id>')
}

 

Reply