+ Start a Discussion
kaixarkaixar 

tabIndex Error

Hi,

 

I'm using "tabIndex" in a InputField value tag but it is not supported and shown an error, as mentioned below,

Error: Unsupported attribute tabindex in <apex:inputField>

 

anysuggestions?

 

Thanks.

sfdcfoxsfdcfox

I presume tabIndex is a controller/extension variable? If so, you need to use one of the other apex input tags (such as selectList, inputText, or inputCheckbox).

kaixarkaixar
 <apex:pageBlock title="Edit Account: {!Account.Name}">
        <apex:pageBlockSection title="Account Details" columns="1">
            <apex:inputField value="{!Account.Name}" tabIndex="4"/>
            <apex:inputField value="{!Account.Website}" tabIndex="3"/>
            <apex:inputField value="{!Account.Industry}" tabIndex="2"/>
            <apex:inputField value="{!Account.AnnualRevenue}" tabIndex="1"/>
        </apex:pageBlockSection>
    </apex:pageBlock>

I was using above code snipt given on Visualforce Developer's Guide.
sfdcfoxsfdcfox

The docs are wrong... it's tabOrderHint for inputField.

Hassan SharifHassan Sharif

There is an error in documentation. See <apex:inputField> component details in the link.

https://ap1.salesforce.com/apexpages/apexcomponents.apexp

sivainkecsivainkec

thanks ..it worked for me

 

Alka BajajAlka Bajaj
Thank you... It worked...