You need to sign in to do that
Don't have an account?

How to set Tab Order for a apex:inputField component
Hi,
I am apex:inputField visual force component on a Visual force page by using the StandardController and want to set the Tab Order (that should be vertically) for all the fields. I am not finding any attributes for the apex:inputField to set the Tab Order.
I tried to use the "tabindex" but did not work. The "tabindex" works for the apex:inputText but not for the apex:inputField.
Any idea?
Thanks in advance..........
Thanks,
NG
I am apex:inputField visual force component on a Visual force page by using the StandardController and want to set the Tab Order (that should be vertically) for all the fields. I am not finding any attributes for the apex:inputField to set the Tab Order.
I tried to use the "tabindex" but did not work. The "tabindex" works for the apex:inputText but not for the apex:inputField.
Any idea?
Thanks in advance..........
Thanks,
NG
I did some poking around and apparently there is a 'tabIndex' property on other input types, but not inputField. I did, however, find a hack that can work if you are desperate:
http://community.salesforce.com/t5/Visualforce-Development/Tab-key-Order-on-pageBlockSection/m-p/149949#M17343
hi,
There is another solution
we can set the tabindexes to other elemets. For inputField tabindex can be set using javascript as follows by calling onfocus of previous element of inputfield
function setTabindexfordueDate() {
var dueDateEle = document.getElementById('{!$Component.taskForm.pbarId.taskdetail.Task__c_id_duedatetime__c}');
dueDateEle.setAttribute("tabindex",518);
}