Save active tab

The recommended method of customizing your AppGini-generated application is through hooks. But sometimes you might need to add functionality not accessible through hooks. You can discuss this here.
Post Reply
R Scott
Posts: 14
Joined: 2018-01-04 18:42

Save active tab

Post by R Scott » 2020-10-01 20:10

This is more of a bootstrap question but I feel like this group would have the best suggestions and benefit from a solution.

I currently use tabs to divide content into groups for easy data entry. When save is click the page will always refresh to the first tab.
I am looking for a way to remain on the current tab after a save so form entry can continue.

There are solutions posted in various other places but none of them seem to work with appgini. Any advice would be appreciated.

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1709
Joined: 2018-04-01 10:12

Re: Save active tab

Post by pbottcher » 2020-10-02 18:48

Hi,

you could set either a SESSION variable if you just want to keep the tab for that session, or you could use the localStorage to store the activ tab and retrieve it once you come back to that page.
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

Post Reply