# How can a tab (page) have a default value?

**URL:** <https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881>\
**Category:** Ask for Help\
**Tags:** tutorial\
**Created:** [March 20, 2025, 7:37pm UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881 "2025-03-20T19:37:27Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)\
**Post date:** [March 20, 2025, 7:37pm UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/1 "2025-03-20T19:37:27Z")

</div>

Hi,

Upon loading, how can one load a tab (page or screen) with a default value?

(I don’t know if **Title** or **slug** are relevant?)

Your help is quite appreciated!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 21, 2025, 12:22am UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/2 "2025-03-21T00:22:59Z")

</div>

What do you mean by a “default value”? What’s your use case here?

---

<div class="post-metadata">

**Author:** ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)\
**Post date:** [March 21, 2025, 1:47am UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/3 "2025-03-21T01:47:18Z")

</div>

some fixed value for that screen.

I have a boolean value that needs to be reset upon navigating (loading) to a screen. In other words, how do I reset a variable upon loading a screen?

---

<div class="post-metadata">

**Author:** ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)\
**Post date:** [March 21, 2025, 6:03pm UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/4 "2025-03-21T18:03:27Z")

</div>

For boolean variables use **check and uncheck** and not enable or disable!

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [March 21, 2025, 11:49pm UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/5 "2025-03-21T23:49:24Z")

</div>

Your best bet might be an AI component. Tell the component to clear the boolean every time it reloads, and hide it from the screen using CSS.

Assign it a hidden CSS class name, and use this code in the CSS section in Settings \> Appearance:

```auto
.hidden {
display: none;
}

```

---

<div class="post-metadata">

**Author:** ![Braunne](https://avatars.discourse-cdn.com/v4/letter/b/71e660/32.png) [@Braunne](https://community.glideapps.com/u/Braunne)\
**Post date:** [April 12, 2025, 10:21pm UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/6 "2025-04-12T22:21:41Z")

</div>

No CSS unfortunately. and no AI… How can one do something upon loading a screen? you would know.

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [April 12, 2025, 11:11pm UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/7 "2025-04-12T23:11:39Z")

</div>

> [@ThinhDinh](#):
>
> and hide it from the screen using CSS

You can ask AI don’t display anything instead using CSS and AI custom component is available on free plan i believe

---

<div class="post-metadata">

**Author:** ![slscustom.ru](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/slscustom.ru/32/77336_2.png) [@slscustom.ru](https://community.glideapps.com/u/slscustom.ru)\
**Post date:** [April 12, 2025, 11:24pm UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/8 "2025-04-12T23:24:04Z")

</div>

> [@Auto Action trigger](https://community.glideapps.com/t/auto-action-trigger/77525):
>
> I made a prompt that allow an action to be triggered on page load. I attempted to create a prompt that allows the AI component to perform an action on load after a delay of 100 ms. While I couldn’t get it to work with the provided delay value, it still enables us to make the AI execute a custom action upon page load. Here is the prompt : 1. In the \*\*DATA\*\* section, define only the `Delay` property with a milliseconds value. 2. On component load, automatically retrieve the `Delay` property. If…

Just paste it on your page [NotificationTrigger - Glide custom component](https://components.glide.info/share/commit::f9440757-a58d-7cc5-2550-57b01769a109)  
And create Show Notification custom action with first step is wait 0.1 then set column to default value

---

<div class="post-metadata">

**Author:** ![fk1214](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fk1214/32/71058_2.png) [@fk1214](https://community.glideapps.com/u/fk1214)\
**Post date:** [April 15, 2025, 7:14am UTC](https://community.glideapps.com/t/how-can-a-tab-page-have-a-default-value/80881/10 "2025-04-15T07:14:26Z")

</div>

AI’s the only way you can do it for now, otherwise users have to click a button each time to trigger it
