cancel
Showing results for 
Search instead for 
Did you mean: 

Enable Set Focus in Gallery items

Currently the SetFocus function does not work in Gallery items.  This would be really useful if we could.

We are seeing a lot of development that uses in line editing in a gallery (to simulate the repeating tables we used to use in infopath).  When error proofing/patching is added to the OnChange property of these fields, they lose focus.  We would like to be able to SetFocus for a better user experience of tabbing between fields.

Status: New
Comments
jehsti
Regular Visitor

To add on to this, it would be extremely useful to be able to use SetFocus with controls on an EditForm in a customized SharePoint form.

The out-of-the-box SharePoint Online forms have this functionality, but we cannot achieve it in custom forms with PowerApps yet, with no explanation as to why.

ToniP
Frequent Visitor

+1. useful for working with large galleries to programmatically set the focus back to the first item.

Becauseman
Frequent Visitor

Set Focus is a great tool, but it has way to much limitations. It would be nice if we can set focus in editform & gallerys.

markw-vastbank
Regular Visitor

YES... AND... why not leave the focus alone upon "OnChange" event...


Patch('sharepoint list',ThisItem, {SP_Field: Self.Selected.val});

vinayabburi
Regular Visitor

I checked this functionality today in SharePoint integrated New/Edit forms by adding SetFocus in OnVisible property of FormScreen and seems like this is working, but as per Microsoft documentation this is not yet supported in EditForms. Can someone confirm this?