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

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!

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

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?

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

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:

.hidden {
display: none;
}

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

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

Just paste it on your page NotificationTrigger - Glide custom component
And create Show Notification custom action with first step is wait 0.1 then set column to default value

2 Likes

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