Autofocus cannot be turned off in drupal | Community
Skip to main content
Answered

Autofocus cannot be turned off in drupal


Forum|alt.badge.img

In Drupal I can set the share link as external media. I saved the typeform without auto-focus and added '?data-tf-disable-auto-focus=true' to the typeform link in Drupal.
But in the frontend (in an embed-element) it still steals the focus. 
What else can I do? How can the autofocus be turned off.

Best answer by Internet-CaCH

We added ?typeform-embed=embed-widget to the link.

View original

9 replies

Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15024 replies
  • March 9, 2023

Hi @Internet-CaCH Can you share the link where the form is embedded so we can take a look? Thanks!


Forum|alt.badge.img

Forum|alt.badge.img

I tried with ?typeform-embed=embed-widget and ?data-tf-disable-auto-focus=true


Forum|alt.badge.img

Hi @Liz Does this help? Thanks in advance for your support.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15024 replies
  • March 15, 2023

Thanks, @Internet-CaCH ! It looks like you have typeform embedded as an iFrame. Could you embed the form using one of the methods provided here to see if this solves the issue? 


Forum|alt.badge.img

In the meantime we solved this issue. Thanks for your support.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15024 replies
  • March 20, 2023

Glad to hear it, @Internet-CaCH ! What solved the issue? 


Forum|alt.badge.img
  • Author
  • Explorer
  • 5 replies
  • Answer
  • March 21, 2023

We added ?typeform-embed=embed-widget to the link.


Liz
Community Team
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 15024 replies
  • March 21, 2023

Thanks so much, @Internet-CaCH ! Glad to know that worked. I’ll share with anyone else that has a similar question. 


Reply