Forum Discussion
JillEngle
8 years agoQrew Trainee
Can it be applied generically so that if the button is used on a report it returns to the report but if used on a form in a tab it returns to that tab? Side note: Why doesn't QuickBase just always return to the tab you were on in a form by default when you save or in reload?
- QuickBaseCoachD8 years agoQrew CaptainThe code will refresh the page you are on, be it a report or a record.
- JillEngle8 years agoQrew TraineeYes, it reloads the page but when used in a form it reloads to the first tab even if the button was located on the third tab, for instance.
- QuickBaseCoachD8 years agoQrew CaptainI would have to do some testing to see if it is possible to position to a specific tab. There are some tips on this thread that you can try and let me know.
- LorraineChung8 years agoQrew TraineeWe've been stuck with this problem as well!! Been trying to find a way to direct the user to the next tab. The tabs make the form look a lot neater, but it also hides the content, which creates a very bad user experience......
- JillEngle8 years agoQrew TraineeI did find that there is some code in the pages that does have a reference to the "activeTab". Now if I can only learn enough coding to make use of that fact. :) Here's the bit I found and put on a sticky note for future reference:
$("#tabHolderSection.ui-tabs-uxv2").tabs({
selected: QB.Storage.UserDB.get("activeTab", 0) - _anomDiebolt_8 years agoQrew EliteI would not mess with that code. Off the top of my head I think QuickBase is using localstorage to persist the active tab on the form on a per user basis. If your goal is to load the page and automatically select a particular tab on the form you are better off using script to emulate a click on the specific tab. I am backed up at the moment but I will look at this over the weekend and clarify.
- JillEngle8 years agoQrew TraineeThanks for your insights. The point of all of this is that I want a way to return to the same place I already was after a button click, whether it is a report, tab on a form, whatever.
The button script referenced in the first part of this post works wonderfully when placed wherever we want it. The only exception being that when the button is placed on a form tab, it never reloads that particular tab after being pressed, it returns to the first tab of that form.
I know I can but I don't want to specify a specific tab being clicked because then I lose the ability to put this button wherever I want.