Set Focus on a Tab
Dear Community
We are currently working on a modern form and saw two points that we currently see no OoB solution to implement.
1. We like to actitvate on a modern form a tab on specific Condition. On Rich Forms it's quite easy to implement it with givig the Tab an ID and use jQuery but on a modern solution we can't follow that approach.
2. If the Validation of the modern Form is face an issue and perhaps the field is in another tab the focus is not on the missing field.
Does anybody have an idea to implement it in a simple way.
Thanks and best regards
Patrick
-
Hi Patrick Tognella,
for the first point to activate a tab on a modern form you can still use jQuery to get the correct tab and simply execute a .click() on that control e.g. jQuery("div.ant-tabs-tab")[1].click()
The second point regarding validation we have to consider in our product to show that correctly.
I will add this valuable feedback to our backlog, thanks.
Kind regards
Matthias
0
Please sign in to leave a comment.
Comments
1 comment