385
Views
6
Comments
Input_FocusFirstInvalid does not focus at correct first invalid input field
Question

Hi All,

I am using the Input_FocusFirstInvalid for focusing the very first invalid field in screen form. It is working very fine in desktop browser but not working correctly in mobile browser. In mobile browser it does not scroll and focus/highlight correctly to the very first invalid field in the form. 

Please share some solution/suggestion to this issues. 

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi Sandeep,

The Input_FocusFirstInvalid action is from RichWidgets which is a web widgets module designed for web apps. So I don't think it will work for Mobile.

I think you would have to implement the logic yourself in your client action flow where you validate your inputs. The OutSystemsUI module contains a SetFocus and a ScrollToElement action which can help to set focus and scroll to a specific input. 

Hope this helps!

Regards,

Nordin

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

@Nordin If it's a traditonal web app on a mobile browser, surely it should work.

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Ah yes, browser is the keyword here. You're probably right Kilian.

So @Sandeep tell us, what type of application are you developing?

UserImage.jpg
Sandeep Prajapat

Nordin Ahdi wrote:

Ah yes, browser is the keyword here. You're probably right Kilian.

So @Sandeep tell us, what type of application are you developing?

 Nordin - my application is a traditional web app but we are observing this app in mobile browser (IPhone - Safari).

 

2021-08-12 11-00-27
Nordin Ahdi
 
MVP

Hi Sandeep,

Did you test it on any other mobile browser?

UserImage.jpg
Sandeep Prajapat

Nordin Ahdi wrote:

Hi Sandeep,

Did you test it on any other mobile browser?

 Yes, we tested in Chrome as well, the same issue we are facing in Chrome also.

 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.