RSS Feed/News Saving a tabbed form gives no feedback when a required field is hidden

Status
Not open for further replies.

ENXF NET

Administrator
Staff member
Administrator
Moderator
+Lifetime VIP+
S.V.I.P.S Member
S.V.I.P Member
V.I.P Member
Collaborate
Registered
Joined
Nov 13, 2018
Messages
34,552
Points
823

Reputation:

Put a required text input on the first tab of a tabbed form. Leave it empty, switch to the second tab, and click Save. The browser blocks submission without a visible validation message.

XF.FormInputValidation tries to scroll to the invalid input while its tab pane is hidden with display: none. One fix is to call XF.Tabs.activateTab() for the pane containing the first invalid field during the invalid event, so the browser can focus the field and show its validation message.

Continue reading...
 
Status
Not open for further replies.
Top