@emmanuel can we have the tab index exposed in the inspector. Just wondering how feasible it is?
Yes, that would be very useful indeed. My forms are a complete mess: if you tab, it will jump around the input elements in a seemingly random order.
I agree, need to expose the tab order value.
It’s been a year. Is this something that can be done? Out of order tabbing is bad UX.
I Agree on this
We can off course create a plugin that would do this but it would be a bad work around for something that should be handled by the editor
Does anyone have the secret sauce on how to force the app to display default focus on the first input in the group/form? Is it something to do with the order in which you add the inputs? Even if I add in order, the last input takes on the initial focus which is driving me crazy.
I’m also adding inputs in a hidden group and the inputs in the visible group in the same pop-up completely change focus as well!
Just trying to get around this a simple way without adding javascript to the page. @emmanuel or @josh ?
I should have searched better. These links probably contain what I need:
I seen that earlier. But I would a more elegant solution.
Thanks for the work around though
Within the same parent group, we assign tabs top to bottom and left to right (so if you arrange them in linear rows, it should go through each row from left-to-right and then move on to the next row). Right now we don’t define order between groups – if inputs are in different groups, it’s the order is somewhat arbitrary (and may change). And there’s no way to manually set the order, though solutions like the one Levon posted in the linked thread above might work.
We have an item on our roadmap (https://bubble.io/roadmap) to improve this situation, since we know it’d be helpful to have better tools for managing this. Unfortunately given the way we draw elements on the page it’s not super-simple to build this out so it’s not a quick win.
Thanks Josh. I’m now using the JS Toolbox plugin to explicitly set the tab index on each field and this is working perfectly for me for now.
It’s been another year. Would be nice to have this available.
How can I set the tab index?
I think the idea is make sure that they line up exactly underneath each other and you can help things along by putting the inputs in the same group.
Are you using regular inputs? Or other elements like radiobuttons, multi dropdowns, picture uploader, etc.? I am finding that these types of elements seem to make tabbing go haywire.
See screenshot added to my reply to codeables. From memory, I was only using a form with inputs.
I used this code with varying degrees of success to try to automatically sort everything. You should run this after page load.
$(document).ready(function () {
setTimeout(function () {
//adjust indexn
$(":input:not(:hidden)").each(function (i) { $(this).attr('tabindex', i + 1); });
//Remove Tab Index from Date Element
$('.picker__holder').removeAttr("tabindex");
}, 2000);
});
In case of console errors - make sure you’ve converted the quotes in the script from:
to:
$(document).ready(function () {
setTimeout(function () {
//adjust indexn
$(":input:not(:hidden)").each(function (i) { $(this).attr('tabindex', i + 1); });
//Remove Tab Index from Date Element
$('.picker__holder').removeAttr("tabindex");
}, 2000);
});
This is a helpful one, thanks!