Skip to main content
Answer

Autofocus cannot be turned off in drupal

  • March 9, 2023
  • 9 replies
  • 130 views

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.

9 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 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
  • Author
  • Explorer
  • March 15, 2023

Forum|alt.badge.img
  • Author
  • Explorer
  • March 15, 2023

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


Forum|alt.badge.img
  • Author
  • Explorer
  • March 15, 2023

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


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • 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
  • Author
  • Explorer
  • March 20, 2023

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


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • March 20, 2023

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


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

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


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • March 21, 2023

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