Notifications
Announcements
Hi, team
We have a requirements to optimize the tab navigation for the input controls inside PCF components, but we didn't figure out a proper way to determine the proper tab index value, could you advise? Thank you.
Thanks @HemantG - exposing it would be great - but it also needs to be translated into the 'real' tabindex that is being used by the CanvasApp runtime - this is different to the logical tabindex set by the user at design time.
Thanks for the clarification. Canvas tabIndex support is planned and can be explicitly assigned using properties panel. I think we would need to expose this via properties to controls explicitly too because unlike model UCI canvas PCF will need to assign subrange for the tab stops within the controls.
I will get this marked as open issue in the docs.
Thanks,
Hemant
I have faced the same issue - the accessibility.assignedTabIndex value isn't supported because it's not documented.As you say, even if we did get this value - it makes it hard to know what actual value your tabindex needs to be because of the runtime rendering. Best I've found is to use the DOM explorer to find what tabindexes are being assigned and then set accordingly. This does make it challenging when the Canvas App layout changes.In Model Driven Apps - it's easier because the tab index is automatically assigned and the PCF control is added to the dom in the order that tab focus is accepted.@HemantG can we expect this to be documented and exposed and converted to the 'real' tabindex.
P.S. We are using Canvas app, not model-driven app.
@HemantGThanks Hemant, however, the tabindex="0" didn't work to me, as we have both the PowerApps OOB controls and PCF components on the same screen, the PowerApps will automatically adjust the tabindex values of the OOB input controls when generating the HTML content, regardless which TabIndex value configured in the PowerApps, while the <input /> inserted by the PCF component will keep the tabindex="0" we assigned, then the final tab index is "INPUT (OOB): 2, INPUT (PCF): 0, BUTTON (OOB): 5", see the attachments for example, our goal is to use tab navigating to access the controls as per their display order in the web UI, any idea?
Unified interface for model apps uses DOM ordering without need of explicit tabIndex assignment.
So setting tabindex="0" should enable the controls to participate in the tab ordering for the app.
Please check and let me know if you find any issues.
hemant
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Kalathiya 401
WarrenBelz 334 Most Valuable Professional
MS.Ragavendar 325 Super User 2025 Season 2