Skip to main content
Answered

Autofocus cannot be turned off in drupal

  • Mar 9, 2023 8:01 AM UTC
  • 9 replies
  • 182 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.

View original

9 replies

Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Mar 9, 2023 3:05 PM UTC

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
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Mar 15, 2023 2:26 PM UTC

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
  • Mar 20, 2023 10:34 AM UTC

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


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Mar 20, 2023 2:17 PM UTC

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


Forum|alt.badge.img
  • Author
  • Explorer
  • Answer
  • Mar 21, 2023 6:06 AM UTC

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


Liz
Ex–Typefomer
Forum|alt.badge.img+5
  • Tech Community Advocate
  • Mar 21, 2023 4:48 PM UTC

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