# Trigger floating webview through shortcuts not working

**URL:** <https://community.folivora.ai/t/trigger-floating-webview-through-shortcuts-not-working/39131>\
**Category:** Configuration Help & General Discussion\
**Created:** [September 12, 2024, 5:22am UTC](https://community.folivora.ai/t/trigger-floating-webview-through-shortcuts-not-working/39131 "2024-09-12T05:22:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ooo\_ooO](https://community.folivora.ai/user_avatar/community.folivora.ai/ooo_ooo/32/33371_2.png) [@Ooo\_ooO](https://community.folivora.ai/u/Ooo_ooO)\
**Post date:** [September 12, 2024, 5:22am UTC](https://community.folivora.ai/t/trigger-floating-webview-through-shortcuts-not-working/39131/1 "2024-09-12T05:22:46Z")

</div>

I'm going to display a floating webview to redner some html through Shortcuts app, but nothing displayed when I run the shortcuts. I tried it inside BTT app and it's working. How do I fix this problem?

 ![image](https://community.folivora.ai/uploads/default/original/3X/8/4/84c732d47bb42f02ecb6be6f07582f32a86f8d32.jpeg)

---

<div class="post-metadata">

**Author:** ![fortred2](https://community.folivora.ai/letter_avatar_proxy/v4/letter/f/e79b87/32.png) [@fortred2](https://community.folivora.ai/u/fortred2)\
**Post date:** [September 12, 2024, 9:18am UTC](https://community.folivora.ai/t/trigger-floating-webview-through-shortcuts-not-working/39131/2 "2024-09-12T09:18:00Z")

</div>

Hi @Ooo_ooO, welcome to the BTT community!

I tried replicating your Apple Shortcut based on the details in your screenshot. Can you confirm whether you've modified any of the default configurations below the " **Do NOT keep active in background**" toggle?

Based on my testing, it seems that the " **Z Index**" setting may not be functioning properly when set to " **Float above all other windows**." This means the floating webview doesn't appear as expected when the Apple Shortcut is triggered. For more details on how the Z Index setting is supposed to work, you can refer to the relevant section in the [BTT documentation](https://docs.folivora.ai/docs/10_1_webview_config.html#:~:text=active%20when%20clicked.-,Z%2DIndex,-%3A%20Using%20this%20you).

However, I noticed something interesting: after using the " **Show Desktop**" gesture (for me, that’s a spread with thumb and three fingers), the webview does appear, but it is **beneath all other windows** rather than floating on top as expected. This suggests that the Z Index behavior might not be working correctly in this configuration, or there could be an issue with how the Shortcut triggers the webview.

> **See screenshot**
>
> ![image](https://community.folivora.ai/uploads/default/original/3X/0/0/004934e3429d189044f4e8ab3352c8533e630a11.jpeg)

### Workaround

Try modifying the " **Z Index**" setting to " **Specify window z-index/level manually**" and set the " **Z Index Manual**" to a number. After doing this, the webview appeared above all other windows as expected for me. You may need to experiment with different values. Additionally, you might find [this blog post](http://www.gietal.net/blog/nswindowlevel-shenanigans) about Z Index levels on macOS helpful.

Let me know if this workaround helps or if you need more assistance! Looking forward to hearing back from you.

@Andreas_Hegenberg, could you confirm if this is a bug with the " **Z Index**" setting or if there’s something we’re overlooking?

---

<div class="post-metadata">

**Author:** ![Ooo\_ooO](https://community.folivora.ai/user_avatar/community.folivora.ai/ooo_ooo/32/33371_2.png) [@Ooo\_ooO](https://community.folivora.ai/u/Ooo_ooO)\
**Post date:** [September 12, 2024, 9:42am UTC](https://community.folivora.ai/t/trigger-floating-webview-through-shortcuts-not-working/39131/3 "2024-09-12T09:42:17Z")

</div>

I left the configuration **Do NOT keep active in background** as default (unchecked). And after my testing, it seems **Float above all other windows** and **Stick to desktop, behind all other windows** have same behavior. Setting index to a large value or using the configuration **behaving like standard windows** both working well. Thanks a lot, this problem really bothering me for a long time.
