The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
Hi
I use AUI tabs to show 3 confiform tableview in 3 tabs. As describe in AUI.atlassian documentation there is on active (or main tab) and three other. MY pb is when I work in confiform table (table3 or 2 show in tab3 or 2) each time confiform refresh page it always return on First tab not on last tab used.
someone can help me to rest on current tab even if confiform refresh page after a new record ?
thx
I believe you can tell what tab should be active, and that is by adding #tabname to the url
Which means you can probably set ConfiForms to redirect (via IFTTT rule, for example) on submit (create/modify) to the url you need
Alex
Nop, it doesnt work. Even if I manually enter URL#tabname I have good URL in address bar but the page show always the the tab that was defined as active tab...
I think it s necessary to change active tab with js or jql but I don't know well scripts languages
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am not a pro in Atlassian aui tabs and this is really not my cup of tea, but after a bit of a research I think that this little script could help
<script type="text/javascript">
AJS.toInit(function () {
initTabFor();
AJS.$(window).on('hashchange', function() {
initTabFor();
});
});
function initTabFor() {
var hash = AJS.$(window.location).attr('hash');
if (hash !== '') {
AJS.tabs.change(jQuery('a[href="' + hash + '"]'));
}
}
</script>
You will need to put it on your page - what it does is, it reads the anchor from the URL and tells the tabs to "switch" to this anchor
Obviously the anchor needs to be the same as the ID of a tab
The example is based on the https://aui.atlassian.com/aui/8.5/docs/tabs.html
Hope it helps
Alex
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
👋 Hello Community! My name is Stephanie Zhang, and I’m a product manager on the Confluence cloud team. Today, I’m excited to announce the rollout of Presenter Mode : a ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.